[Rails] Highcharts/Rails/jQRangeSlider/Ajax

2016-02-11 Thread John Sanderbeck
Has anyone paired these together into a working example that you could share? I am trying to do a set of charts based on a date range selected by the jQRangeSlider and have them dynamically update with an Ajax call but I am having no luck. Just wondered if anyone had any examples on how I can do

[Rails] Upgrading to Rails 4 Sprockets::ConversionError

2016-02-11 Thread mikej
I am in the process of upgrading my app to rails 4. On stylesheet_link_tag or image_tag I get the error: Sprockets::ConversionError at / could not convert "text/html" to nil In the console: helper.image_tag("accept.png") after some time I get the same error. I have emptied the sprock

Re: [Rails] Paperclip + ImageMagick help needed

2016-02-11 Thread Colin Law
On 11 February 2016 at 03:08, Walter Lee Davis wrote: > ... > In order to do this (no matter which file attachment system you choose) you > will need to refactor your application slightly. You need a model instance > *per* image uploaded, so the usual way to do this is with a nested form. You >

[Rails] observe_field on rails 4

2016-02-11 Thread Dev Mapluz
hi i used observe_filed on rails2 to detect a choice in a popup, an use render update in my controller how can i use this functionnality in rails 4 ? do i have to go with javascriot or jquery thanks for you help -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

Re: [Rails] Paperclip + ImageMagick help needed

2016-02-11 Thread Walter Lee Davis
> On Feb 10, 2016, at 10:34 PM, Alexis Marie wrote: > > Hey Walter. Thanks for all of the help! > > I went through all of your steps. What should I write on my view page? > > > > If you want to show all the images for a listing, the simplest thing is: <%- @listing.images.each do |image| %

[Rails] Sample Rails API & UI consuming it

2016-02-11 Thread Lazarus Lazaridis
Hello everybody, Here you can find a sample Rails 4 API application (lofocats_api) and here a sample Rails 4 UI application (lofocats_ui) consuming it (attached screenshot). https://github.com/iridakos/lofocat

[Rails] Order by in nested includes

2016-02-11 Thread Martin GOYOT
Hello there, I'm encountering a strange issue. I tried to google about it but I may not be using the right wording (I am quite new at RoR). I'm using some nested eager loading through a scope of one of my models. So I have something like this: ``` scope :includes_all, lambda {includes(:buggy_r