On Sat, Mar 20, 2010 at 1:09 AM, shyam mohan <[email protected]>wrote:

> plz see this
> http://pastie.org/878267
> reply if u find any error or suggestion..
> plz its urgent
>
>
> Regards,
> Shyam
> +91-9716-18-9650
>
>
Shyam, local variables are not accessing within the view.  Thus, you'll need
to change

charges = Charge.find(:all,:conditions =>"company_id =#{comp_id}")

to

@charges = Charge.find(:all,:conditions => [ "company_id =  ?" , comp_id ] )

Next, I would recommend reading "Agile Web Development with Rails 3rd" as well

as the guides.rubyonrails.org.

Good luck,

-Conrad



 --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

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