How do I avoid having duplicate rows in a has_many :through table?
Thanks Chris!Félix Landry-Audet replied • Solved
Routing question: Pass a 2nd parameter in the URL?
You're making super good progress. And I know right? I started with GW-Basic, VB6, some C++, Java, back in my early days and it wasn't till I found Python that I felt like I could actually be produ...Chris Oliver replied • Solved
Was wondering id there is a way i can simply this ...
would this be the same if i wanted to get a variants volume type? Would i need to add `, through: : products` on the `has_one :volume_types` in the `product_variant` model I have the following....Alan Reid replied • Solved
Pull data from another table in a lookup
Sweet, I'll have to play around with it, I love a good editor! :) Did you ever mess with Summernote? http://summernote.org/examples/#hint-for-mention They support mentions out the box it looks ...Jacob Montgomery replied • Solved
Saved messages as HTML
Yeah, that was one of those weird things that jQuery does. It'll work as you might think, but not completely. If you were writing this with plain JS, you'd use the same code as I did in my solution...Chris Oliver replied • Solved
GroupChat ActionCable Part 6 coffee and Chrome compatibility
Interesting. I've seen some odd things with caching in the browser sometimes and that could definitely do it. Plus they update Chrome so often these days that you never know when they might introdu...Chris Oliver replied • Solved
I'm building a widget that needs to dynamically load my html files (similar to an SPA)
EDIT: SolvedMasud Hossain posted • Solved
How return has_many with array instead of object
For convention I have alter to uppercase the role names, see below: ```ruby class UserSerializer < ActiveModel::Serializer attributes :id, :name, :nickname, :image, :roles def roles ...Bruno Wego replied • Solved
Question on ActionCable Group Chat part 4, development.rb fix for redis
Yeah, it's now the default for Rails I believe, so it's a required dependency if you use the defaults. Super easy install with homebrew and everything should be automatically working for you after ...Chris Oliver replied • Solved
ActionController::UnknownFormat in MessagesController#create
Anytime! 🍻Chris Oliver replied • Solved
ActionCable Part 3: can't write unknown attribute `user_id`, what am I missing?
I read this earlier and wasn't quite sure what it was, but that would explain it! :) Happy to help if you have any other questions.Chris Oliver replied • Solved
Create a welcome page with a tour/get started
You could add a Boolean field to your devise user table something like **intro_viewed** Once they have done viewing the intro you could ping their user ID via and ajax request to a completed act...Alan Reid replied • Solved
How can I allow my users to configure their account (created w/ devise) with their smtp server, so they can send & recieve emails in my app?
Thanks for your answer and especially your content! Keep it up!Drilon Buzuku replied • Solved
Error updating nokogiri and autoprefixer using Capistrano -- local/production gem mismatch
I'm kind of surprised that worked, but I guess there was something going on between the versions of Bundler that were local and previously installed in production. We both learned something new tod...Chris Oliver replied • Solved
User Profile with devise
Thanks Chris! This cleared up a few different things for me. I appreciate the thorough answer :)Darren Nickerson replied • Solved
macOS sierra working w/ Ruby / Rails / RBENV?
Nothing so far unfortunately on sqlite. This is what I'm watching right now: https://github.com/sparklemotion/sqlite3-ruby/issues/195Chris Oliver replied • Solved
How to setup SSL with a rails app
Got it working Chris. Just redo same step and got it working. thank you.Francisco Quinones replied • Solved