On Lunes, 10 de diciembre de 2012 18:34:34 Andrey Korobkov escribió: > On Wed, 14 Nov 2012 10:15:34 +0100 > > Sergio Cambra <[email protected]> wrote: > > It require to change a lot of lines calling id to call to_param > > May be, using default Rails paths' helpers could help? Do they use > to_param() internally?
to_param is used if you pass a model to url_for or paths helpers, but ActiveScaffold calls id method, so it won't help. Changing id calls to to_param calls or no call needs too much work, it's not my priority at this moment, but I will accept pull request if it doesn't break anything. Also, ActiveScaffold will never use paths helper becuase ActiveScaffold don't force you to define routes (generic routes work too), and also you can use plain routes or nested routes and now it work, but it wouldn't work using path helpers. It's too hard to use path helpers because you have to do assumptions -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
