Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Joe Guerra
Ok, I got it working. For some odd reason I couldn't paste that hover javascript file into my javascript folder. So, I created a new javascript file (using rubymine) and then pasted the actual code into it and saving it with the same name. I don't know if that's a permissions problem, but it pu

Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Mugurel Chirica
Open the developer console (right click -> inspect in Chrome), and see if you get any related errors. Alternatively try and use the suggested command from the Readme: $('.dropdown-toggle').dropdownHover(options); See if that helps in any way. -- You received this message because you are subsc

Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Joe Guerra
No, it didn't work :( On Friday, November 10, 2017 at 4:23:35 PM UTC-5, Walter Lee Davis wrote: > > That looks correct. Did it work? > > Walter > > > On Nov 10, 2017, at 4:16 PM, Joe Guerra > wrote: > > > > ok this is what I tried in one of my menus > > > > > > data-hover="dropdown" d

Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Walter Lee Davis
That looks correct. Did it work? Walter > On Nov 10, 2017, at 4:16 PM, Joe Guerra wrote: > > ok this is what I tried in one of my menus > > >data-hover="dropdown" data-delay="1000" role="button" aria-haspopup="true" > aria-expanded="false">Categories > > <% all_categories

Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Joe Guerra
ok this is what I tried in one of my menus Categories <% all_categories.each do |category| %> <%= link_to category.name, category_path(category) %> <% end %> <%= link_to "All Categories", categories_path %> I added 'data-hover="dropdown" data-delay="1000"' to the href tag. On Friday, Novembe

Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Walter Lee Davis
> On Nov 10, 2017, at 3:53 PM, Joe Guerra wrote: > > I'm trying to follow this ... > > https://github.com/CWSpear/bootstrap-hover-dropdown > > and add hover to my drop down menus. > > But, I'm not sure what to do with the javascript in this situation? Do I add > it to the application.js m

[Rails] drop down hover bootstrap

2017-11-10 Thread Joe Guerra
I'm trying to follow this ... https://github.com/CWSpear/bootstrap-hover-dropdown and add hover to my drop down menus. But, I'm not sure what to do with the javascript in this situation? Do I add it to the application.js manifest or do I add the requirements in the application.html? Thanks

[Rails] Re: ActiveRecord/ActiveModel freezes attribute values in Rails 5 (possible bug)

2017-11-10 Thread Kris
Looks like this was a bug and is fixed: https://github.com/rails/rails/commit/8de7df5b22e853f028e5a71b26d45a0ce7a2c0f4#diff-da764be48e98c7b140730924b50595b0 On Friday, 10 November 2017 10:26:31 UTC, Kris wrote: > > key = 'foo' > > key.frozen? # => false > > TextFieldDefinition.create(key: key)

[Rails] ActiveRecord/ActiveModel freezes attribute values in Rails 5 (possible bug)

2017-11-10 Thread Kris
key = 'foo' key.frozen? # => false TextFieldDefinition.create(key: key) key.frozen? # => true (not expected) I created a minimal example to demonstrate the bug this but it does not reproduce it. It appe