There is no way for that. to_param is usually overrided to be used in links, 
indeed, if you 
use :id => record with url_for, rails will use to_param

You could override find_if_allowed in the controller so it looks for records 
using another field 
instead of id

El Viernes, 12 de junio de 2015 09:30:57 Jason Fleetwood-Boldt escribió:
> My app has the to_param method overloaded on some models. This in turn
> causes active scaffold to create links that use the string-based params
> that come from the overloaded method, thus causing them not to work.
> 
> Is there any way to tell AS to not be calling to_param, or at least call
> specify an alternative to_param method (like to_param_original -- I know
> sounds hacky) so that AS will play nicely with this app?
> 
> The problem is that the to_param overload is embedded fairly deeply into
> Spree's core code, and I'd have to unwind a lot of dependencies in Spree to
> undo the to_param thing. (I don't particularly like it)
> 
> -Jason
> 
> 
> 
> ----
> 
> Jason Fleetwood-Boldt
> [email protected]
> http://www.jasonfleetwoodboldt.com/writing

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to