Re: [Rails] Re: Rails 4: generic route

2014-09-18 Thread Paolo Di Pietro
ot;) %> not clear where 'You don't want to have white space between method name and brackets so either " Il giorno giovedì 18 settembre 2014 23:15:54 UTC+2, Colin Law ha scritto: > > On 18 September 2014 22:04, Paolo Di Pietro > wrote: > >> Done! >>

Re: [Rails] Re: Rails 4: generic route

2014-09-18 Thread Paolo Di Pietro
2014 22:04, Paolo Di Pietro > wrote: > >> Done! >> >> Then I put >> <%= link_to "some text", /factory/demo/message/1389/ %> >> in my .erb file >> >> > I think maybe before worrying about generic routes you need to get to >

[Rails] Re: Rails 4: generic route

2014-09-18 Thread Paolo Di Pietro
ncoming request of /photos/show/1 is processed by this route > (because it hasn't matched any previous route in the file), then the result > will be to invoke the show action of the PhotosController, and to make > the final parameter "1" available as params[:id]. This rout

[Rails] Re: Rails 4: generic route

2014-09-18 Thread Paolo Di Pietro
, and to make > the final parameter "1" available as params[:id]. This route will also > route the incoming request of /photos to PhotosController#index, since > :actionand :id are optional parameters, denoted by parentheses. > > > On Thursday, September 18, 2014 10:02:2

[Rails] Re: Rails 4: generic route

2014-09-18 Thread Paolo Di Pietro
: > > Cant you do it already? > > On Monday, September 15, 2014 6:34:46 PM UTC+2, Paolo Di Pietro wrote: >> >> Hi all, >> >> I'd like to implement (Rails 4) a very high level (generic) abstract >> controller, able to manage any route and then create

[Rails] Rails 4: generic route

2014-09-15 Thread Paolo Di Pietro
Hi all, I'd like to implement (Rails 4) a very high level (generic) abstract controller, able to manage any route and then create a viewer on the fly. I'd like to call it 'abstracts', and being able to call as :abstract(/:subject(/:action(/:id))) something like abstract/user/create or abs