1
我想創建一個新的記錄,當用戶按下一個按鈕。該網頁似乎是令人耳目一新,但沒有記錄被創建Rails 4.0.1創建數據庫記錄從link_to
%tbody
- page_list.each do |page|
%tr
%td.text-center=image_tag "https://graph.facebook.com/#{page['id']}/picture?width=40&height=40"
%td= link_to page['name'], "http://www.facebook.com/#{page['id']}"
%td= page['category']
%td
%span.webicon.facebook
%td
=link_to 'Import Page', pages_path(:page => { name: page['name'], page_id: page['page_id'] }, :controller => :pages), :class => 'button default tiny'
=link_to 'View Page', "http://www.facebook.com/#{page['id']}", class: 'button default tiny'