<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_hakoiri</author_name>
  <author_url>https://blog.hatena.ne.jp/y_hakoiri/</author_url>
  <blog_title>箱のプログラミング日記。</blog_title>
  <blog_url>https://www.y-hakopro.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>Railsで商品予約サイトを作成しています。 ユーザー機能はdeviseで実装し、権限によってできる処理を分けたかったので adminを使用しました。 主に使用するモデルとしては product（商品） user（顧客） order（注文） といった感じです。 今回、通常ユーザーはorderのnewとcreateのみ 管理者専用ユーザーは商品の追加や削除、全ユーザーの注文一覧表示など 全ての処理ができるようにします。 adminの導入 usersテーブルにadminカラムを追加 マイグレーションファイルを作成します $ rails g migration AddAdminToUsers 出来上…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.y-hakopro.com%2Fentry%2F2019%2F07%2F29%2F173525&quot; title=&quot;railsで管理者権限を付与したい【rails_admin】 - 箱のプログラミング日記。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/y_hakoiri/20190729/20190729165436.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-29 17:35:25</published>
  <title>railsで管理者権限を付与したい【rails_admin】</title>
  <type>rich</type>
  <url>https://www.y-hakopro.com/entry/2019/07/29/173525</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
