I am basically trying to get 开发者_如何学运维this result: <a href=\"#\" class=\"button small-button green-button\">
I\'m trying to create an object without a form, but just clicking on a link: <%=link_to \"Add as friend\", user_friend_path(current_user,u), :method=>:post %>
I want a link to update a resource, without using an HTML form. Routes: resources :users do resources :friends
So I have this: <%= link_to(image_tag(@model.picture.url(:thumb), :alt => \'\'), \"/pages/you/#{something.id}\", {:id => \"y_link_#{something.id}\"}) %>
I\'m trying to use the button_to rails helper. I wrote the following code: <%= button_to \'Edit Item\', edit_item_path(@item), :class => \'mark-button\' %>
I\'m generating a bunch of links in a menu bar on my app. When the user is viewing one of the pages of the menu bar I\'d like the style to change to show that they are viewing the present page. It\'s
What am I doing wrong here? This seems to work fine earlier in my code: -@images.each do |img| -link_to eval(params[:action] + \'_image_path(img)\') do
I have a basic setup of views that was generated by the Rails 3 scaffolding.It gives me a partial view _form.html.erb.Both my edit.html.erb and my new.html.erb render this partial view.
I have a search field and button. When the user searches something like \"开发者_如何学JAVAcat\" my view renders a bunch of related keywords such as \"catnip\", \"cat toys\", \"cats\" etc... each of t
I want to make an in-place search in my rails app. I used button_to_remote with prototype, but now I\'m using JQuery, so I changed to link_to.