Call rb file on HTML

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

On Sep 11, 12:41 pm, Marlon [email protected] wrote:

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.

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

2009/9/11 Marlon [email protected]:

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.

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

Thanks for your help…