I would put it in the Model if possible.
Then override the corresponding create function in the controller to
execute the Model function.

Look here maybe on how to launch a stored procedure:
http://stackoverflow.com/questions/471517/is-it-possible-to-call-a-mysql-stored-procedure-from-ruby

Also remember that ActiveRecord  have callbacks which is also useful
for performing stuff after_update or after_create.
To pass parameters from forms is basic RoR stuff and should be
possible through the params hash like this params[:my_value]

Get it to work in a regular Rails test app first, without hobo, may
also help you. Hobo error messages are sometimes more cryptic than
regular rails-errors.

/MartOn

On Apr 13, 10:12 am, Shaz <[email protected]> wrote:
> Hi,
>
> I would like to call a mysql stored procedure in the save button of a
> form, where would you put the code
> i.e. in the views?, also what would be the syntax to call a stored
> proc, the stored procedure will take a value
> from the screen and pass it as a parameter.
>
> Thanks Shaz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to