I''m a Rails newbie and I have added the CKEditor Gem which is working okay. To configure the gem though, you have to edit the config file, which is also working when I do that. However, when I push to github and pull to my other computer, the config file is not changed. This lead me to the following broader question: when you use a gem, where does the code go and how can you make sure it all gets deployed - especially with regards to CKEditor as the other stuff seems to work. I accept this may be a really stupid question. -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Feb 17, 2013 at 4:25 AM, Jonathon M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m a Rails newbie and I have added the CKEditor Gem which is working > okay. To configure the gem though, you have to edit the config file, > which is also working when I do that. However, when I push to github and > pull to my other computer, the config file is not changed. > > This lead me to the following broader question: when you use a gem, > where does the code go and how can you make sure it all gets deployed - > especially with regards to CKEditor as the other stuff seems to work. >Are you using something like rvm/rbenv? if not then you can do "which rails" and you''ll get the path where the rails gem is. If you are using a ruby version manager, then it''s inside .rvm or .rbenv folder, in a folder called "gems", as you are downloading the gem as a git repository (that''s my guess) I assume it will be inside a "bundler" folder. Javier -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Javier Quarite wrote in post #1097393:> On Sun, Feb 17, 2013 at 4:25 AM, Jonathon M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > >> I''m a Rails newbie and I have added the CKEditor Gem which is working >> okay. To configure the gem though, you have to edit the config file, >> which is also working when I do that. However, when I push to github and >> pull to my other computer, the config file is not changed. >> >> This lead me to the following broader question: when you use a gem, >> where does the code go and how can you make sure it all gets deployed - >> especially with regards to CKEditor as the other stuff seems to work. >> > > Are you using something like rvm/rbenv? if not then you can do "which > rails" and you''ll get the path where the rails gem is. > If you are using a ruby version manager, then it''s inside .rvm or .rbenv > folder, in a folder called "gems", as you are downloading the gem as a > git > repository (that''s my guess) I assume it will be inside a "bundler" > folder. > > JavierYes, I''m using rvm. So the CKeditor gem will be there. If I want to modify the gem and have that modification passed to my deployed site do I need to move it to within my assets (or whatever)? I ask because otherwise when I run bundle install on the deployed site (heroku hosted) it will just install the regular ckeditor files won''t it, without my changes? And thanks a lot for the response! Jonathon -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Feb 17, 2013 at 9:44 AM, Jonathon M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > Yes, I''m using rvm. So the CKeditor gem will be there. If I want to > modify the gem and have that modification passed to my deployed site do > I need to move it to within my assets (or whatever)? I ask because > otherwise when I run bundle install on the deployed site (heroku hosted) > it will just install the regular ckeditor files won''t it, without my > changes? >As far as I understand, you''re modifying the gem by your own. I''ve donde this with simple form and once with ckeditor. This is what I did then: - forked the github repository - made the changes, commit them and push to my fork - then in Gemfile gem ''simple_form'', :*git* => ''*git*://github.com/MY_ACCOUNT/simple_form.* git*'' If your site is in heroku, then I suggest doing this. Javier -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 17 February 2013 09:25, Jonathon M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m a Rails newbie and I have added the CKEditor Gem which is working > okay. To configure the gem though, you have to edit the config file, > which is also working when I do that. However, when I push to github and > pull to my other computer, the config file is not changed.You might be better to use the technique described in [1] rather than modifying the one in the gem itself. Colin [1] http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Using_a_Custom_Configuration_File -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law wrote in post #1097417:> On 17 February 2013 09:25, Jonathon M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I''m a Rails newbie and I have added the CKEditor Gem which is working >> okay. To configure the gem though, you have to edit the config file, >> which is also working when I do that. However, when I push to github and >> pull to my other computer, the config file is not changed. > > You might be better to use the technique described in [1] rather than > modifying the one in the gem itself. > > Colin > > [1] >http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations#Using_a_Custom_Configuration_File Thanks Colin, I''m not sure how I missed that. That would certainly be the easiest way. Jonathon -- 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 rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.