Ruby on Rails Thursday, May 29, 2014

On 28 May 2014 22:35, Simon Eric <lists@ruby-forum.com> wrote:
> @postis is an string.

No it isn't, you had
@postis = Posti.where(:stato => "unchecked" , :spectacle_id =>
params[:spectacle_id] , :hall_num => params[:sala])
so why would it be a string? The method 'where' returns (effectively)
an array of records, hence the error you saw. So *please* just work
right through a good tutorial. the time spent will be repaid many
times over.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu8wS1waF%3Dw6LUUQUFOkiLcQB%3DNUE-ih4LHaQc6We%3DHNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment