hi Rakoth

Thank you

Is there any good tutorial where i can search for text using ajax ruby on
rails
I am using rails 2.3.2

-- 
Karthik.k
Mobile - +91-9894991640


On Wed, Jul 29, 2009 at 1:32 PM, Rakoth <rakot...@gmail.com> wrote:

>
> <% form_tag nil, :id => 'search_form'  do %>
> <%= text_field 'recipe', 'name' %>
> <% end %>
>
> works fine
>
> On 29 июл, 10:51, karthik k <cse.k.kart...@gmail.com> wrote:
> > hi this is my htnl
> >
> > <html>
> > <head>
> > <%= javascript_include_tag :defaults %>
> > </head>
> >   <body>
> > <%= form_tag nil, { :id => 'search_form' } %>
> > <%= text_field 'recipe', 'name' %>
> > <%= end_form_tag %>
> >
> > <div id="recipe">
> > </div>
> >
> > <%= observe_form :search_form, :frequency => 0.5,
> >      :update => 'recipe',
> >      :url => { :action => 'search_ajax' } %>
> >   </body>
> > </html>
> >
> > below is the error i am getting
> > Action Controller: Exception caught
> >
> > Showing *room/search.html.erb* where line *#9* raised:
> >
> > You have a nil object when you didn't expect it!
> > You might have expected an instance of ActiveRecord::Base.
> > The error occurred while evaluating nil.[]
> >
> > any idea
> > --
> > Karthik.k
> > Mobile -+91-9894991640
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to