link-to
rails - how to change database values with a link
I am making a website using rails and I am in desperate need of help of how do I create a link that when clicked on it will update an attribute in the database but only when clicked on.I have this cod[详细]
2023-02-28 17:32 分类:问答rails: is there a way to include multiple link_to's in yml?
I would like to clean up my views a little bit. Currently I am not sure about the syntax of yml and if there is a way to include link_to methods in a yml statement. One solution without link_to method[详细]
2023-02-25 06:20 分类:问答link_to and no route match problem
I have try to use link_to like so: <%= link_to post.title, {:controller => \'posts\', :action => \'show\', :id => post.title}, :title => post.title %>[详细]
2023-02-23 20:39 分类:问答Ruby on rails 3 link_to controller and action
I know this is probably a pretty simple concept. I am trying to create a link to a controller and actio开发者_JS百科n. For example I have a link in my layout file to update a record when a link is cli[详细]
2023-02-23 13:46 分类:问答Ruby on Rails - passing the value of an input field to
Hi I am stuck here pretty bad. The senario is quite simple actually, I have an in开发者_StackOverflow社区put field like this:[详细]
2023-02-23 10:21 分类:问答Building a nested attribute from multiple parent objects
I\'m currently trying to use link_to with a helper method that creates links for creating items dynamically, rather than using the new_object_path methods.Rails 3 allows for polymorphic URLs, which fl[详细]
2023-02-23 05:41 分类:问答Cannot get added Method and link_to to work (Rail 3)
Seen some references, but its old Rails 2 solutions.Having a hard enough time understanding some of the Rails 3 nomenc开发者_运维百科lature.[详细]
2023-02-21 22:56 分类:问答Is it possible to add HTML (such as an img tag) to link_to helper in rails3?
I see it being escaped, and in this case want to avoid that for a certain link. Or is the only way to build the link with HTML and ERB?[详细]
2023-02-20 08:27 分类:问答passing a parameter to the link_to method
How do you pass a parameter through the MVC using the link_to method? view: <%= link_to \"Remove Tag\", remove_tag_issue_path(issue)%&开发者_运维问答gt;[详细]
2023-02-19 19:06 分类:问答Rails 3: Why "link_to" gives wrong output?
In my view file开发者_如何学运维 I type the following: <table> <tr> <td><%= link_to(tag(:div, {:class => \"my_class\"}), \"my_address\") %></td>[详细]
2023-02-19 10:33 分类:问答