On Oct 24, 2008, at 4:14 AM, Steven A Bristol wrote:
>
> On Fri, Oct 24, 2008 at 2:56 AM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>>
>> 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?
>>
>>
>
>
>
> Did you actually create the foolook action in the
> profiles_controller.rb?
>
>
> cheers,
> steven bristol
>
> >
Yes I did
--~--~---------~--~----~------------~-------~--~----~
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?
-~----------~----~----~----~------~----~------~--~---