Skip to content

simple_format 和 simple_form_for  #88

@3014zhangshuo

Description

@3014zhangshuo

<%= 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)

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Type

      No type

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions