Forum: Ruby on Rails How to call stored Procedure(mysql) in rails

3218124dc039bf9afba426245deaaf13?d=identicon&s=25 Tsolmon Narantsogt (Guest)
on 2014-07-31 14:23
(Received via mailing list)
Hello Comrades

How to call stored Procedure(mysql) in rails.
i'm using rails 3.2
174dad5d84e4dce9b21365418d5765ae?d=identicon&s=25 Annapoorna R (Guest)
on 2014-07-31 15:16
(Received via mailing list)
@Tsolmon,

 You can try this
ActiveRecord::Base.connection.execute("procedure_name")


On Thu, Jul 31, 2014 at 5:51 PM, Tsolmon Narantsogt <mnts26@gmail.com>
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.