On Monday, December 9, 2013 8:17:43 PM UTC-8, Muhammad Nuzaihan Bin Kamal 
Luddin wrote:

> Hi All,
>
> I have this code in my controller.
>
>    @accesspoint = Accesspoint.new(params[:accesspoint])
>   @accesspoint.radgroupcheck_attributes = [{ :value => 
> params[:accesspoint][:shortname], :groupname => current_user.email }]
>
> It will not work, (I got an error "can't convert Symbol into Integer" however 
> an activerecord method with:
>
>     @accesspoint.radhuntgroup_attributes = [{:groupname => 
> params[:accesspoint][:shortname]}]
>
> Could someone enlighten me about this?
>

You'd need to provide a full backtrace as well as the related model code 
for proper debugging.  It's actually best if you can provide a fully 
self-contained example showing the problem you are having.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to