i tried it but iv got this errorNoMethodError in Agent replyController#show

undefined method `find_by_name' for #<Class:0x3bf8210>


2008/11/1 Ishara Gunathilake <[EMAIL PROTECTED]>

> oh thanx,it was a mistake,il try ur code
>
> 2008/11/1 mrbless <[EMAIL PROTECTED]>
>
>
>> ModelName.find_by_name('some_name').
>> I have a doubt with your table it should be replies rather than reply
>> coz' table name are plural form of model name in ROR (if you stick
>> with convention over configuration).
>>
>> On Nov 1, 9:47 am, "Ishara Gunathilake" <[EMAIL PROTECTED]>
>> wrote:
>> > i have a table called reply which has id, name, addressi wanna retrieve
>> > address when a given name, so can anyone
>> > tell how can i do it.
>> > i can retrieve data using modelname.find(anyid),,but i can't
>> > do it for any name
>> >>
>>
>

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