create a file at config/initializers/paperclip.rb

In that file put your paperclip-specific configuration options.

By default, everything in config/initializers/  loads when the Rails app boots 
up.

As far as WYSIWYG inline editors, you will probably lean on your knowledge of 
Javascript more heavily than Rails to implement any WYSIWYG editor --- but 
there may be some specific integration points to note. 

In particular, read up on how Rails keep strings sanitized and HTML-safe. You 
will need to bypass some of that for an inline editor, since the inline editor 
will need the output to be in HTML and not escaped HTML.

In the past I have used TinyMCE (another WYSIWYG editor), and it happens to 
have a gem that makes it easy to integrate into Rails 
(https://github.com/spohlenz/tinymce-rails), but by no means does that make it 
the only choice for inline editor. You just  might have to get your hands dirty 
with Javascript to make the others work. 

-Jason


On Aug 25, 2014, at 1:18 PM, Frank R. <[email protected]> wrote:

> I had to use version 3.5.3
> 
> I am learning Rails, so this has been a nightmare for me coming from 
> PHP.
> 
> Regarding your example for Paperclip.options, I do not know where I 
> would wright that code.
> 
> Do you have version 4.1 working?
> 
> Thanks
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/d924ae3451d9ba6b4635632cbb590b7d%40ruby-forum.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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/83572BD2-280A-4975-8156-C57E818C8507%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to