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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B2f8828fdcd5c0cfdc49e60165be9629?d=identicon&s=25 Chris (Guest)
on 2006-06-10 03:22
I created the website www.brandfetch.com 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. www.brandfetch.com/rails/web_stats/get_domain_stats)

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,
Chris
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (danieldaniel)
on 2006-06-10 04:38
(Received via mailing list)
Test against request.xhr? in the controller:
http://api.rubyonrails.org/classes/ActionControlle...
0175

Neat site!
Ba2582cd50a59359ac3f7305ad2a0429?d=identicon&s=25 ReggW (Guest)
on 2006-06-10 07: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 power...is there an update-to-date "Showcase" area
somewhere for RoR websites?

Thanks
394956904f277c27102000d002c1aec4?d=identicon&s=25 Steven Talcott Smith (Guest)
on 2006-06-10 14:49
Chris wrote:
> I created the website www.brandfetch.com 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.

Steven
B2f8828fdcd5c0cfdc49e60165be9629?d=identicon&s=25 Chris (Guest)
on 2006-06-10 19: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.

Thanks!
Chris
This topic is locked and can not be replied to.