How to call stored Procedure(mysql) in rails

65 views
Skip to first unread message

Tsolmon Narantsogt

unread,
Jul 31, 2014, 8:22:21 AM7/31/14
to rubyonra...@googlegroups.com
Hello Comrades

How to call stored Procedure(mysql) in rails.
i'm using rails 3.2

Annapoorna R

unread,
Jul 31, 2014, 9:15:52 AM7/31/14
to rubyonra...@googlegroups.com
@Tsolmon,

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


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPs6WScrwGWnquq0%2BWWFSYz9oxbA9MAUbT02b2iqHuGZYoatCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages