Ruby on Rails
Tuesday, May 21, 2019
yes i do:
scope :pm do
get '/', :to => 'projects#dashboard', :as=>'pm_dashboard'
resources :project_resource_groups #, :path=>'tasks'
resources :project_programs
resources :projects
get '/', :to => 'projects#dashboard', :as=>'pm_dashboard'
resources :project_resource_groups #, :path=>'tasks'
resources :project_programs
resources :projects
end
but again, the _index view partial is used in a lot index actions, so i dont know how to "pick" the right 'path' while creating the html table...
thx
On Tue, May 21, 2019 at 2:49 PM Walter Lee Davis <waltd@wdstudio.com> wrote:
The projects path isn't coming from the controller, it's coming from the routes file. Do you have any references in your routes.rb file that mention projects?
Walter
> On May 21, 2019, at 2:46 PM, tom <tomabroad@gmail.com> wrote:
>
> hi, i have a generic _index partial, but i am struggling with constrcuting the
>
> (link_to "show", ......(rec.id))
>
>
> how can i get that filled in? i have tried via url_for (controller & action), but it always says: arguments passed to url_for can't be handled
>
> please help
>
> thx
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMcwBzUv9EYzHCEoN%2BZXDb4pEWt%2BU%2BKpbtO3Es375-xpug%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/AAAFA33B-6F38-44A6-87D2-E2CF7FBEE5D5%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMedP5BfQtZgsrAGcNPjhVTbfc28OZXG2yEtQgqNS1dXVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment