Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1082637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:19:45+00:00 2026-05-16T22:19:45+00:00

Rals 3.0 My question is using link_to_remote to make an ajax call. 2.3.8 Ajax

  • 0

Rals 3.0

My question is using link_to_remote to make an ajax call.

2.3.8 Ajax call

<%= link_to_remote image_tag("../images/services_button.jpg", :mouseover => 
    "../images/services_button_over.jpg"), :url =>{:controller => :dashboard, :action => :service} %>

Current View –

<% link_to_remote view_path do %>
            About Us<span>Who we are</span>
<% end %>

How do I go about turning my current view code into an ajax call ?
I’ve tried something like this …

<% link_to_remote "hello", :url=>{:controller=>:sae,:action=>:bam} do %>
            About Us<span>Who we are</span>
      <% end %>

Thanks for your help in advance.

Trying to do basic…basic.. UJS.

Very simple AJAX call to make a div go up. Though it’s not working. Trying to transition from 2.3.8 to 3.0. Any help is greatly appreciated. I’ve googled, though I’m not able to make any sense of the jargon. 🙁 Thanks in advance

View:

<div class="test">
  Whompa
</div>
<%= link_to 'Blind-Up', :controller=>:home,:actions=>:test, :remote =>true %>

Controller:

  def test
    render :update do |page|
      page[:test].visual_effect :blind_up
    end
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:19:46+00:00Added an answer on May 16, 2026 at 10:19 pm

    The Rails 3 syntax is now <%= link_to "hello", :remote => true %>. There’s quite a few blog posts/tutorials online about making ajax calls with the new syntax – I’d recommend http://code.alexreisner.com/articles/link-to-remote-with-ujs.html, http://blog.solnic.eu/2009/09/08/unobtrusive-javascript-helpers-in-rails-3 and http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/ as a good starting point. Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a rals 3.2.8 application. I started it on my Mac and
When I load thin like so: thin start -e production and try to access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.