How to add view option in Ruby? -


i have allowed admins delete user having

link_to("delete", admin_path(resource), :confirm => "do want delete item?", :method => :delete) 

how add option view, want view item?

rails applications typically respond various actions based on http verb, routes method controller. comments point out correct code link default show method controller:

link_to("view", resource_path(resource)) 

however, have have method written retrieve , display contents of resource, including template display fields, etc.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -