[column]_form_column(record, column) should work too, but you can get
problems with columns with same name in different models, for example,
in subforms

On Tue, 9 Oct 2012 15:53:37 -0400, Hernan Astudillo <[email protected]>
wrote:
> First of all: rails version? AS version?
> 
> notice that on rails>3.1 assets are handled through asset pipeline. 
> 
> AS > 3.1 helper override format is 
> [model]_[column]_form_column(record, column)
> 
> you can test logging what gmaps4rails(record.to_gmaps4rails) is
> outputing. 
> 
> On Tue, Oct 9, 2012 at 11:48 AM, bencarsal  wrote:
>  Hi group,
> 
> i want to know if somebody has gmaps4rails in the action update in
> activescaffold.
> 
> i have this:
> 
> in helper about my controller mymodel_helper.rb: 
> 
>   def locate_form_column(record, options)
>      gmaps4rails(record.to_gmaps4rails)
>   end
> 
> and in the model have this virtual column:
> 
> attr_accessible :locate
> 
>  def locate=(_longitud,_latitud)
>     latitude = _latitud
>     longitude = _longitud
>   end
>    
>   def locate
>     "#{latitude} - #{longitude}" 
>   end
> 
> in the controller:
> 
> active_scaffold :sites do |conf|
>     conf.columns 
> 
> Links:
> ------
> [1] mailto:[email protected]
> [2] https://groups.google.com/d/msg/activescaffold/-/jhUBcyeTXTkJ
> [3] mailto:[email protected]
> [4] mailto:activescaffold%[email protected]
> [5] http://groups.google.com/group/activescaffold?hl=en

-- 
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.

Reply via email to