link-to
custom action for a nested resource without adding to routes
This is probably really simple but I have a nested resource lets say: map. resources :book, :has_many => :pages[详细]
2023-01-24 21:18 分类:问答Add a value to a delete link in Rails?
I currently have the following link_to in my Rails application: <%= link_to \'Remove this Person\', @person, :confirm => \'Are you sure?\', :method => :delete, :class => \'important\', :c[详细]
2023-01-21 04:55 分类:问答Toggling a single value in a model, all from a link_to
I have an Admin controller for a page of a Rails 3 app that lists all the User model accounts in a table, and part of each row should be a link (with confirmation) to toggle the is_admin attribute of[详细]
2023-01-18 04:03 分类:问答named routes with devise in Rails 3 haml view
from rake routes I get this in my application new_admin_session GET/admins/sign_in(.:format){:controller=>\"devise/sessions\", :action=>\"new\"}[详细]
2023-01-18 02:07 分类:问答SEO/Rails - How to add the title tag to every "link_to"
I\'m surprised Rails creator didn\'t开发者_C百科 think about that, if someone can help, would be great.[详细]
2023-01-17 14:14 分类:问答link_to :action => 'create' going to index rather than 'create'
I am building a fairly simple recipe app to learn RoR, and I am attempting to allow a user to save a recipe by clicking a link rather than through a form, so I am 开发者_如何学Pythonconnecting the use[详细]
2023-01-16 10:08 分类:问答Syntax for link_to with block in rails3 with :remote=>true and including :class and :id
For the love of god, I\'ve been banging my head on this for hours. Using rails3 rc, 1.9.2. I\'m trying to create a link_to that submits an ajax request, with parameters, a class and id, and needs a[详细]
2023-01-15 23:50 分类:问答Rails link_to not automagically using request.format as extension in links
I\'m setting request.format = :mobile within an ApplicationController before_filter. before_filter :some_filter[详细]
2023-01-15 00:14 分类:问答Ruby on Rails: How to pass parameters from view to controller with link_to without parameters showing up in URL
I am currently using a link_to helper in View to pass parameters like title , author ,image_url and isbn back to controller[详细]
2023-01-14 23:09 分类:问答Upgrading :with parameter on a link_to_remote in Rails 3
What\'s the preferred UJS replacement for the Rails RJS helper \':with\' parameter on a link_to_remote when upgrading to Rails 3 (using the new unobtrusive link_to... :remote => true syntax).[详细]
2023-01-11 18:30 分类:问答