link-to
Passing a parameter to a 'new' action via link_to
Rails 开发者_如何学Cnewbie here and I\'m stumped.In Rails I have a Project Model which has_many Tasks.Lets say I have a view that is displaying 5 projects and each project has a \'New Task\' link so t[详细]
2023-02-18 17:30 分类:问答Embedded HTML in link_to body in Rails
What is the best way to go about getting embedded HTML in the body of a link generated with the link_to method?[详细]
2023-02-17 13:45 分类:问答controller_path(object) is returning website.com/controller.1
I have manually created a new View for an existing scaffolded Model in my Rails app because, well I thought that was the point, I can create multiple views for the same Model.Everything seems to funct[详细]
2023-02-13 12:24 分类:问答Rails3 nested layout and partials passing parameters
Hey, I\'m working on a page having a nested layout. first I have the applicationlayout with my \"mainmenu\" now I want to add a second menu only on this page. I got this working via[详细]
2023-02-13 08:58 分类:问答Rails 3, browser back functionality
I am trying to get a back feature 开发者_Go百科working on a Iphone web application. I have looked at all the other posts about this issue, but none of them address my specific case.[详细]
2023-02-13 03:26 分类:问答Create a view using multiple models data
My (rails 3) application use 开发者_运维技巧collection and product as models. collection has_many products and product belongs_to collection.[详细]
2023-02-12 18:49 分类:问答RAILS link_to external site, url is attribute of user table, like: @users.website
I\'m working on a website that allows users to create an account. One of the attributes when creating a user is a users personal website. When I try to use the users website like this:[详细]
2023-02-10 13:50 分类:问答Rails 3 - Javascript :confirm not working for link_to and button_to with :method => :delete
In my index.html.erb file I\'m trying to display the title to my object (a \"listing\") and the normal \"show\", \"edit\", and \"destroy\" links and/or buttons.With :method => :delete and :confirm =>[详细]
2023-02-10 12:03 分类:问答Clean way in Rails to conditionally change the link_to location
SO i have this link_to <li><%= link_to \"Home\", root_path %></li> but if its an admin i want go to a different location like below...I know i can do this but is there a cleane开[详细]
2023-02-09 20:52 分类:问答Rails - cannot figure out how to destroy a record
I am not able to find the right way to destroy a record. I feel like such a complete newb. Here are the routes pertaining to the controller (output from rake routes):[详细]
2023-02-08 11:15 分类:问答