ohhh....got it... i forgot including the custom javascript file...working fine now..
On Nov 4, 8:19 pm, venkata reddy <[email protected]> wrote: > Hi All, > i have a feedback form in my application, which will be in the footer > partial. Well i am using fancybox jquery plugin for the form. > The form is working fine for the home controller which is using the > application.rb layout. I have written the form action in the home > controller > > i am rendering the same partials for all the layouts in my > application. > > code inside the _footer.html.erb is > > <div id="footer"> > <%= yield :scripts %> > <ul> > <li><a href="#">About Us</a></li> > <li>|</li> > <li><a href="#">Privacy</a></li> > <li>|</li> > <li><a href="#">Terms of Use</a></li> > <li>|</li> > <li><a href="#">Disclaimer</a></li> > <li>|</li> > <li><a id = "example2" href="#contact_form" > Give Feedback</a></ > li> > <%= render :partial =>'layouts/contact_form' %> > </ul> > </div> > > as you can see i am rendering the contact form partial inside the > footer partial. > > and the routes include > > post "home/send_feedback" > > match "home/send_feedback", :to => 'administrators/ > home#send_feedback' > match "home/send_feedback", :to => 'ngos/home#send_feedback' > match "home/send_feedback", :to => 'volunteers/home#send_feedback' > match "home/send_feedback", :to => 'caterers/home#send_feedback' > > while i am at the root page everything is working fine. But the > problem is > when i am inside the administrators or hosts etc.. the form is not > working. And i checked that all the required javascript and css files > are loading fine in all the layouts. > > Anybody have a clue? -- 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.

