Forum: Ruby on Rails displaying values from query result in rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7498884689bc6ec3e328c0b32f508b40?d=identicon&s=25 amruby (Guest)
on 2012-06-25 17:16
(Received via mailing list)
i have one query, which gives the correct output in query browser.

*    @getquery = Cname.select("cnames.name").where('skills.rate= ? AND
skills.skill= ?',3,@searchstring).joins('JOIN skills ON cnames.id =
skills.company_id')*
*   *when i print the @getquery, it gives

#<Cname:0x00000003f511f0>
#<Cname:0x00000003e8aa28>* *
*
*
*how to get the name from this **@getquery?*
*
*
*Thanks*
Ced7816570f6384acf5bb7665e79670a?d=identicon&s=25 Oscar Del Ben (Guest)
on 2012-06-25 17:23
(Received via mailing list)
@getquery.name

--
Oscar Del Ben
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
7498884689bc6ec3e328c0b32f508b40?d=identicon&s=25 amruby (Guest)
on 2012-06-25 17:27
(Received via mailing list)
On Monday, 25 June 2012 20:51:53 UTC+5:30, Oscar Del Ben wrote:
>
> @getquery.name
>
>

Thanks.....
that time @getquery.name gives the output

*Cname*
7498884689bc6ec3e328c0b32f508b40?d=identicon&s=25 amruby (Guest)
on 2012-06-25 17:47
(Received via mailing list)
On Monday, 25 June 2012 20:56:45 UTC+5:30, amruby wrote:
>
>
>
> On Monday, 25 June 2012 20:51:53 UTC+5:30, Oscar Del Ben wrote:
>>
>> @getquery.name
>>
>>
>
>
Got the result
This topic is locked and can not be replied to.