Re: [Rails] *.js.erb files

2017-06-16 Thread fugee ohu
On Thursday, June 15, 2017 at 5:03:37 PM UTC-4, Walter Lee Davis wrote: > > > > On Jun 15, 2017, at 1:00 AM, fugee ohu > wrote: > > > > > > > > On Wednesday, June 14, 2017 at 8:49:27 PM UTC-4, Walter Lee Davis wrote: > > There's nothing dated about it. Using RJS

Re: [Rails] *.js.erb files

2017-06-16 Thread fugee ohu
On Thursday, June 15, 2017 at 5:03:37 PM UTC-4, Walter Lee Davis wrote: > > > > On Jun 15, 2017, at 1:00 AM, fugee ohu > wrote: > > > > > > > > On Wednesday, June 14, 2017 at 8:49:27 PM UTC-4, Walter Lee Davis wrote: > > There's nothing dated about it. Using RJS

Re: [Rails] jquery logic

2017-06-16 Thread fugee ohu
On Thursday, June 15, 2017 at 6:33:02 PM UTC-4, Walter Lee Davis wrote: > > > > On Jun 15, 2017, at 6:12 PM, fugee ohu > wrote: > > > > > > > > On Thursday, June 15, 2017 at 5:11:29 PM UTC-4, Walter Lee Davis wrote: > > If you are doing this in a RJS template, then you

Re: [Rails] div_for

2017-06-16 Thread Walter Lee Davis
There can only be one instance of an ID on any given page. And nothing you did in this example will render the id #commentable. If you look at my example, I did not use an ID on each element. The selector in $('#commentable').each should be $('#parent_of_the_list div'), and you'll have to apply

[Rails] Re: directory index

2017-06-16 Thread Joe Guerra
or this ... https://rubygems.org/gems/directory_listing On Friday, June 16, 2017 at 3:59:55 PM UTC-4, fugee ohu wrote: > > I have a bunch of media files I wanna be able to share by offering site > visitors and directory index of the folder and letting them right click to > save files to their

[Rails] Re: directory index

2017-06-16 Thread Joe Guerra
Why not try using this gem https://rubygems.org/gems/directory_watcher I'm sure it will help you with your task. On Friday, June 16, 2017 at 3:59:55 PM UTC-4, fugee ohu wrote: > > I have a bunch of media files I wanna be able to share by offering site > visitors and directory index of the

[Rails] div_for

2017-06-16 Thread fugee ohu
The anchor doesn't get rendered I didn't know what to use for the element name so I used the same as I used the same variable I passed to div_for in my view, commentable Thanks in advance View: <%= div_for(commentable) do %> <% end %> js.erb $(document).on('turbolinks:load', function(){

[Rails] directory index

2017-06-16 Thread fugee ohu
I have a bunch of media files I wanna be able to share by offering site visitors and directory index of the folder and letting them right click to save files to their desktop, can i do that? How? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

Re: [Rails] jquery logic

2017-06-16 Thread Jason Fleetwood-Boldt
Generally very large and apps built after 2013 have moved on to frameworks like Backbone, React, Ember, etc. For a simple or prototype app, RJS is totally appropriate. And as a beginning developer it's totally a great idea to learn how jQuery and Turbolinks works. On a larger app, coding

[Rails] Sprockets::FileNotFound: couldn't find file 'jquery-ui/widgets/draggable'

2017-06-16 Thread João Bordalo
Hi ! I'm trying to deploy my 4.2.7 rails app with nginx and unicorn. when I precompile the assets ( $ bundle exec rake assets:precompile) I get the following error: rake aborted! Sprockets::FileNotFound: couldn't find file 'jquery-ui/widgets/draggable' with type 'application/javascript'