Hey guys,
I've been on this for hours...I'm trying to create an dynamic search
text field for profiles in layouts/applicaiton.html.erb, this is what
i have in application.html.erb
<div id="search" class="left">
<%= text_field_tag :query %>
</div>
<%= observe_field(:query,
:frequency => 0.5,
:update => :search_hits,
:url => foolook_profiles_path,
:method => :get ) %>
<div id="search_hits">
<b>THESE WILL BE SEARCH HITS!!!</b>
</div>
Now in my routes I created a route for a method in the profiles
controller that I would eventually write...so this is what i have in
routes.rb
map.resources :profiles, :member=>{:delete_icon=>:post},
:collection=>{:search => :get, :foolook
=> :get},
:has_many=>[:friends,
:blogs,
:photos,
:comments,
:feed_items,
:messages]
But i keep get an error that :foolook is an undefined method or
variable. I ran rake routes and don't see that my :foolook profile
route is being created. Any help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" 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/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---