link-to
Ruby on Rails link_to :method => :delete syntax
This is a nub question.I have a resource Project which has_many Feeds.When I am viewing the list of nested Feeds on the Project page, I have a Delete button to remove that Feed from the Project.It wor[详细]
2023-03-31 16:34 分类:问答Using link_to with an instance variable and arguments
I am trying to render a comments partial to use with both the blog and video models.Here\'s the blog show page asking for the comments partial and passing @blog as the model (I will pass @video on the[详细]
2023-03-29 12:30 分类:问答linking to method in rails via link_to function
I recently added a new method (called \"help\") to my projects controller (projects_controller.rb), and created a \"help.html.haml\" in the views directory.[详细]
2023-03-28 09:49 分类:问答In rails 3 how do you have text and image in link_to?
I want a link with text and an image. Before rails 3 i开发者_JS百科nternet tells me that you must do :[详细]
2023-03-27 17:57 分类:问答id parameter on link_to
My question it\'s very simple, but I don\'t find a solution. I\'m using: Rails 3.0.9 ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux][详细]
2023-03-25 15:33 分类:问答Rails 3 - how to apply link_to on image_tag with :remote => true attrubute
I am struggling with problem about right setting parameters for image, that is link. Concrete, this works[详细]
2023-03-25 06:40 分类:问答Rails Ajax: .js.erb rendered as text, not executed
I\'m using jquery-rails gem with javascript_include_tag :defaults. Hence the page has header: <script src=\"/javascripts/jquery.js?1312437063\" type=\"text/javascript\"></script>[详细]
2023-03-24 23:42 分类:问答Jquery & Rails 3: Link_to Edit Action Remotely
I have a discussions controller for which I would like to have an edit action that is linked to remotely, allowing for an AJAX call to render a partial on a page (rather than rerouting to a completely[详细]
2023-03-21 16:23 分类:问答Generate a `link_to` to the controller action `edit`, dynamically
I am using Ruby on Rails 3.0.7 and I would like to generate a link_to to the controller action edit, dynamically. I have to use it in a partial template but the issue is that I am rendering that same[详细]
2023-03-21 00:13 分类:问答Rails: method for 'standardizing' url input from users?
I\'d like Users in my Rails app to be able to share a link to their personal website in their profile. Simple enough, I have a column called website and a text field they can fill in to make it work.[详细]
2023-03-19 14:47 分类:问答