Forum: Ruby on Rails handling external links to methods in rails apps

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris (Guest)
on 2006-06-10 05:22
I created the website with Rails. I've noticed that
Google & some search engines have indexed links into the site that are
only meant to be reached through Ajax (link_to_remote) calls within the
app. (e.g.

I know how to handle calls to an unknown method, but how can I handle
these links/calls to implemented methods that aren't supposed to be
called directly?

Thank you,
Daniel H. (Guest)
on 2006-06-10 06:38
(Received via mailing list)
Test against request.xhr? in the controller:

Neat site!
ReggW (Guest)
on 2006-06-10 09:47
Very nice website...

This is the first site that I have seen that really shows of the power
of AJAX and RoR!!

Great Job!!

Now that I'm thinking about it, where are some other RoR websites that
shows this type of there an update-to-date "Showcase" area
somewhere for RoR websites?

Steven Talcott S. (Guest)
on 2006-06-10 16:49
Chris wrote:
> I created the website with Rails.

Great job!   You might want to make the default route '' work so one can
bookmark your home page properly without extra path info -- thereby
allowing you to change controller names, etc. down the road.

Chris (Guest)
on 2006-06-10 21:55
Wow. Thanks everyone .. That's really encouraging!

I put a lot of time into building it--this is my first experience
building a web app, and there was a ton to learn.

Steven--very good advice on the bookmarking. I hadn't considered that.

I don't know about a Rails showcase site. I remember coming across one
some time ago, but I can't remember where.

This topic is locked and can not be replied to.