Hi,

How can i replace div with partial file with the help of controller
and i dont want to use individual file like .js.erb to repalce

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

  • Colin Law at Sep 19, 2011 at 10:37 am

    On 19 September 2011 11:21, Pab wrote:
    Hi,

    How can i replace div with partial file with the help of controller
    and i dont want to use individual file like .js.erb to repalce
    Find some tutorials on how to use AJAX to replace the contents of a
    div. Google is your friend.

    Colin

    --
    gplus.to/clanlaw

    --
    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.
  • Pab at Sep 19, 2011 at 10:45 am
    Hi,

    Colin i can replace with help of ajax but in case of jquery
    page.replace_html is not working, so i going for seperate .js.erb file
    for replacing div, so i want make it simple with out going
    to .js.erb and also should replace div with partial html

    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.
  • Rajarshi at Sep 19, 2011 at 11:42 am
    You the hell
    On Mon, Sep 19, 2011 at 4:15 PM, Pab wrote:

    Hi,

    Colin i can replace with help of ajax but in case of jquery
    page.replace_html is not working, so i going for seperate .js.erb file
    for replacing div, so i want make it simple with out going
    to .js.erb and also should replace div with partial html

    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.
    --
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 19, '11 at 10:23a
activeSep 19, '11 at 11:42a
posts4
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Pab: 2 posts Rajarshi: 1 post Colin Law: 1 post

People

Translate

site design / logo © 2022 Grokbase