Ruby on Rails
Wednesday, October 30, 2013
Hi all
I am trying to use Fckeditor as text area to send mails.here is my code
<% remote_form_for :send_sms,
:before => "Element.show('loader')",
:success => "Element.hide('loader')" do |sms| %>
<div id="news_content_text_field_bg">
<%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %></div>
<%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
<% end %>
But here as the form name is send_sms I used the same name for fckeditor I am unable to send params to my controller.I got the error like
-- I am trying to use Fckeditor as text area to send mails.here is my code
<% remote_form_for :send_sms,
:before => "Element.show('loader')",
:success => "Element.hide('loader')" do |sms| %>
<div id="news_content_text_field_bg">
<%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %></div>
<%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
<% end %>
But here as the form name is send_sms I used the same name for fckeditor I am unable to send params to my controller.I got the error like
uninitialized constant SendSms.
Can someone help me what is going wrong.
Thanks in advance
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7282f636-1b13-4360-84a0-73aadf094003%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment