Hi,


i am working jquery+rails in view i sent data to contoller's
action and in that i action i tried to replace div with partial page
using following
def search_new
@manufact=Manufacturer.find_by_manufacturer_id(manf_id)
respond_to do |format|
format.html
format.js {
render(:update) {|page|
page << "$.("#search_new").html("<%=
escape_javascript(render(:partial => "search_new"))%>")"
}
}
end
end

but its not performing any action, could any one provide me solution ?

thanks,
-pab

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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 5 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 19, '11 at 1:00p
activeSep 19, '11 at 1:59p
posts5
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Tim Shaffer: 2 posts Pab: 2 posts Subbarao: 1 post

People

Translate

site design / logo © 2021 Grokbase