On 4 October 2011 15:11, Pab <[email protected]> wrote:
> hi,
>
> I assigned it my controller like
> @employee = Employee.find(:all,:conditions => ["exp =?",params[:exp]])

Did you try removing the :conditions so it is just .find(:all) to see
what happens?
By the way, you should really call it @employees so you know it is a
collection not just one employee.

>
> i tried it by putting each loop in controller and it workes well, but
> in case of popup box its not working
> and also @employee.size is also not displayed in popup

What do you mean it is not displayed, if you do
size: <%= @employee.size %>
what do you see?

What did you learn by using ruby-debug and breaking into the controller code?

Colin


>
> thanks,
> -pab
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.
>
>



-- 
gplus.to/clanlaw

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to