Ruby on Rails Monday, April 28, 2014

On 28 April 2014 16:32, Joy Ganguly <tech.tutorial4u@gmail.com> wrote:
> Hi buddy!
>
> Thanks a lot for replying.
>
> But the parameters in the log also not showing the html and it is
>
> Parameters: {"utf8"=>"✓",
> "authenticity_token"=>"P7fHbeUQlcCaV3MK2g+Qu6h/CmhM8+g6SOHzqjEuoPI=",
> "request"=>{"title"=>"Title", "date"=>"2014/4/30", "time"=>"4:15 PM",
> "desc"=>"Bold"}, "_wysihtml5_mode"=>"1", "commit"=>"Add Request"}
>
> When i examine the saved data in db it is just plain text.

Do you mean the html tags appear in the data, but as text rather than
being interpreted as html, or the html tags are not there at all, but
the text you entered is there? Just to make sure there is no
understanding you could copy one of the records here.

Colin

>
> On Monday, 28 April 2014 19:52:07 UTC+5:30, Hassan Schroeder wrote:
>>
>> On Mon, Apr 28, 2014 at 5:35 AM, Joy Ganguly <tech.tu...@gmail.com> wrote:
>> > i am using wysiwyg editor
>> > (https://github.com/schnawel007/bootstrap3-wysihtml5) within form, but
>> > when
>> > submitting the form the data with the html tags is not saved
>>
>> The editor doesn't "save" anything - your code does.
>>
>> Does the form submission event in your logs show the html? Then
>> the editor has done its job.
>>
>> What do you see when you examine the saved data in the db?
>>
>> --
>> Hassan Schroeder ------------------------ hassan.s...@gmail.com
>> http://about.me/hassanschroeder
>> twitter: @hassan
>
> --
> 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/efda6a7a-b8e3-4cbd-b563-0c4fccd08343%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
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/CAL%3D0gLu6fK%2B9QFHo86F-Zk-LUr8nqjT5EhSGhf_d%3Di4NLFByYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment