quanzhanying / fullstack-course

20 stars 7 forks source link

simple_format 和 simple_form_for #88

Open 3014zhangshuo opened 8 years ago

3014zhangshuo commented 8 years ago

<%= simple_format(@job.description) %> <%= simple_form_for [:admin,@job] do |f| %> simple_format 和 simple_form_for 是可以通用的还是有什么不同

1.

  • <%= link_to("登出", destroy_user_session_path, method: :delete) %>
  • 2.<%= link_to("Destroy", admin_job_path(job), :method => :delete, :data => { :confirm => "Are you sure?" }) %> method: :delete 和 :method => :delete 有什么不同 ? (是因为HTTP Verb不同吗?1是get 2是delete)