da manu.this prob is  related   with routes.yor  are  suppose to put that
method in routes.rb

On Thu, May 27, 2010 at 5:13 PM, Manivannanj Jeganathan <
[email protected]> wrote:

> Hi,
>
>  I have tried to use searchlogic in my application...
> in def index,
>  @search = AccounDetail.search(params[:search])
>  @account_details = @search.all
>
> In index.rhtml
> <%form_for @search do |f|%>
>  <p>
>    <%=f.label :name_like,"Name"%>
>    <%=f.text_field :name_like%>
>    <%=submit_tag :Search,:name=>nil%>
>  </p>
> <%end%>
>
> I didn't get any search result...
> i tried it with ruby script/console.
> when i call @search.all, i got "NoMethodError: You have a nil object
> when you didn't expect"
>
>
> example
>
> >>search=AccountDetail.search(:name_like_any=>"xx")
> >>search.all
>
> give me a suggestion to solve this problem
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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.
>
>


-- 
-- 
Thanks & Regards,

  Mathew Augustine
  Software Programmer(ROR)
  Maxxion Technologies Inc
  Kakkanad - Cochin
  Mob:+91 -9846476386
  Email(y) :[email protected]
  Email(G):[email protected]
  Blog:http://electronicstrainer.blogspot.com

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