[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I looked into the source of the ckeditor gem (cf. https://github.com/galetahub/ckeditor) and read a bit in its documentation today... I would say Rails acts nearly in the same manner as php would. You integrate the JS, you create a view with a form and add the corresponding classes to it. Tha

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
I can see your points as outlined and thanks for the advise. Since I am learning Rails, I am coming from a PHP background where I am using ckeditor and have no issues with uploading files. I am used to just telling PHP where the javascript files are and adding the necessary javascript to my form

Re: [Rails] Help with ckeditor image upload

2014-08-25 Thread Jason Fleetwood-Boldt
Here's another alternative for you check this out: https://github.com/comfy/comfortable-mexican-sofa It is a fully-fledged CMS engine that actually has a file uploader built in (I think you can upload a file and then DRAG the file reference from the "Upload files" panel on the right into

Re: [Rails] Help with ckeditor image upload

2014-08-25 Thread Jason Fleetwood-Boldt
I see your problem. You want an "built-in" image uploader? That's actually pretty hard, but with a bit of work you will be able to pull that off. You have two basic strategies: 1) Make the user upload the image file somewhere else (like amazon S3 bucket) using their own client (like

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
Jason, Does tinymce-rails have an image upload built-in? If now, what other gem is needed to do this? 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

Re: [Rails] Help with ckeditor image upload

2014-08-25 Thread Jason Fleetwood-Boldt
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 he

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
Thank you, not sure if ckeditor is the best for rails development. I also have LiveEditor from www.innovastudio.com, but cannot figure out how to use it in Rails. I use it in PHP and it is great. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I have to admit, that I'm as well very new to Rails. :) I have not yet installed paperclip nor ckeditor but I'm working on an app on my own and your "case" seemed interesting to me because I also want to add an editor for editorial purposes writing and maintaining blog posts. Hence I made a bit

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
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 receive

[Rails] Re: Re: Re: Session record not getting deleted

2014-08-25 Thread Frederick Cheung
On Sunday, August 24, 2014 5:33:00 PM UTC+1, Ruby-Forum.com User wrote: > > Colin Law wrote in post #1155762: > > 4. When someone logs out, I clear the value and call reset_session. > Again I see the sql record has the "data" variable with changed value. > > session[:user_id] = nil >

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
Which version of Paperclip do you use? There was a security issue with file types hence they changed the behaviour in version 4.0 of paperclip, but of course there was an error in 4.0 concerning content type mapping. In 4.1 they introduced a possibility to add options like so: Paperclip.options

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread frocco
> > I found the answer. > > Had to use https://github.com/rmagick/rmagick/wiki/Installing-on-Windows then set gem to gem "paperclip", "~> 3.5.3" -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop rec

Re: [Rails] mobile development on ruby

2014-08-25 Thread Jason Fleetwood-Boldt
You will almost always find that as your mobile app and web app grow you will require changes to the API. This is why a versioned API enable you to not worry about crippling old mobile clients and move new clients onto the new versioned endpoints. It may be temping to just to "re-use" the exi

Re: [Rails] mobile development on ruby

2014-08-25 Thread Jason Fleetwood-Boldt
We have had good success with PhoneGap (also known as Cordova). However, you will need to write a client app that is written in a framework like Backbone, Angular, Ember. I don't know much about RHOMobile but maybe it is a competitor to PhoneGap/Cordova? As far as back-end, I actually do reco

Re: [Rails] mobile development on ruby

2014-08-25 Thread Scott Ribe
On Aug 25, 2014, at 8:42 AM, André Orvalho wrote: > Well It's more like a question for the future. If I need a app to start with, > is it a good practice to still do the website and use the common API or to > just develop the app? It depends on your market. The advantage of the web site is tha

Re: [Rails] mobile development on ruby

2014-08-25 Thread André Orvalho
2014-08-24 18:32 GMT+02:00 Colin Law : > On 24 August 2014 17:08, wrote: > > Hey guys, > > > > I am about to develop my first mobile app with the same function of a > > website I have developed in rails. So I have a few questions: > > > > 1. My plan is to create an API to the website and build t

Re: [Rails] Re: Re: Re: How to solve can not redirect to nil error?

2014-08-25 Thread Colin Law
On 25 August 2014 08:07, Jaimin Pandya wrote: > Colin Law wrote in post #1155829: > .. > In your last message, you given clue to solve this error. > >> Your error suggests that the lineitem object in @line_item does not have > an > associated expensescounter > > This is main clue which help me to

[Rails] Re: Re: Re: How to solve can not redirect to nil error?

2014-08-25 Thread Jaimin Pandya
Colin Law wrote in post #1155829: > Assuming the above is correct then what is LineItem.expensescounter? > Is it an association, so in the lineitem class you have lineitem > belongs_to Expensescounter or has_one Expensescounter? If so then at > some point you should have made an expensescounter an