Skip to content

simple_format 和 simple_form_for  #88

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)

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    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