[Rails] Re: Ruby on Rails- HTML5 Video as background for landing page not loading on heroku

2016-02-16 Thread Justin Yoon
Can you post what you have in routes.rb? If the logs show RoutingError it's most likely a bug in there (although I have no idea why it would work on your local machine if that's the case). -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Dynamic Data in Highcharts

2016-02-16 Thread Rob Lane
Also jQuery documentation for ajax method can be found here - http://api.jquery.com/jquery.ajax/ On Tuesday, February 16, 2016 at 1:11:58 PM UTC-8, Rob Lane wrote: > > Your using a $.ajax call but not handling the response in any way. It > also seems that the data for your charts is being drive

[Rails] Re: Dynamic Data in Highcharts

2016-02-16 Thread Rob Lane
Your using a $.ajax call but not handling the response in any way. It also seems that the data for your charts is being driven by instance variables from the controller. This means that the data is set for the chart once, when the page is rendered and then never again. I think what you want t

[Rails] Re: Associations with value passing

2016-02-16 Thread Rob Lane
If you just want to hide the field use: <%= f.hidden_field :post_id, value: params[:id] %> See - http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-hidden_field On Tuesday, February 16, 2016 at 4:48:17 AM UTC-8, Ruby-Forum.com User wrote: > > Walter Davis wrote in p

Re: [Rails] Associations with value passing

2016-02-16 Thread Walter Lee Davis
> On Feb 16, 2016, at 7:47 AM, Szabolcs Toth wrote: > > Walter Davis wrote in post #1181415: >>> @comment = Comment.new(comment_params) >>> @comment.post_id = params[:id] >>> >>> But it doesn't work, what did I miss? Thank you! >>> >> >> If you're sending this to the comments controller,

[Rails] Re: Associations with value passing

2016-02-16 Thread Szabolcs Toth
Walter Davis wrote in post #1181415: >>@comment = Comment.new(comment_params) >>@comment.post_id = params[:id] >> >> But it doesn't work, what did I miss? Thank you! >> > > If you're sending this to the comments controller, then set the post_id > attribute in that form. id always refers to

[Rails] Ruby on Rails- HTML5 Video as background for landing page not loading on heroku

2016-02-16 Thread Kranthi Kumar
I'm trying to include a video as background in my application's landing page. Placed the video in assets/videos folder. Added `config.assets.paths << "#{Rails.root}/app/assets/videos"` to production.rb file. The code: <%= video_tag "Video.webm", controls: false, autoplay: true, muted: tru