Call rb file on HTML

2 views
Skip to first unread message

Marlon

unread,
Sep 11, 2009, 7:41:55 AM9/11/09
to Ruby on Rails: Talk
Hi

I'm a beginner in ruby and I just to know how to call rb file on HTML.
For example I have an .rb file that contains a class and some
functions. How can I call that on an HTML for example there's a link
or button on the HTML or just run the rb file. helpful links/tutorials
are also appreciated.

Thanks

Frederick Cheung

unread,
Sep 11, 2009, 1:34:30 PM9/11/09
to Ruby on Rails: Talk
I don't understand the question. Do you want to have a button on a web
page that runs some code of your choosing ? If so you should link /
post a form to an action in one of your controllers that runs your
code.

Fred

Colin Law

unread,
Sep 11, 2009, 2:03:18 PM9/11/09
to rubyonra...@googlegroups.com
2009/9/11 Marlon <marlon...@gmail.com>:

The rails guides at http://guides.rubyonrails.org/ are great, start
with 'getting started' obviously, having worked through there you see
that your question does not make sense. Move on to ActiveRecord
associations and the others. The railscasts are also very useful.

Colin

Marlon MxM

unread,
Sep 11, 2009, 8:19:04 PM9/11/09
to rubyonra...@googlegroups.com
Thanks for your help...
Reply all
Reply to author
Forward
0 new messages