Multiple select for CSV Export
Perfect. Thank you for the hint. I've resolved it like this: Form: ``` true, :size => 8 %> ``` Controller: ``` params.require(:report).permit(:title, :start, :end, brand: ) ```...Sascha M. replied • Solved
Use .ENV instead of Secrets.yml for keys
Yeah, Heroku's stuff is easy because you can say `heroku config:set AWS_SECRET_KEY=xxxxxxxxxxxxx` and it will set the ENV variable for you, and voila! You've got ENV variables set. Much easier ...Chris Oliver replied • Solved
How do I configure paperclip with capistrano?
Awesome! Yeah, the 12factor gem is useful for Heroku, but if you run your own server you don't want it as it won't write to that file. Glad you got it working!Chris Oliver replied • Solved
Facebook Profile Image & Data using Devise in Rails
I'm not quite sure on #1, but as for #2, you've got paperclip which wants an actual file. Facebook's API is only going to return you the url of the file, so you've got to tell Paperclip that you wa...Chris Oliver replied • Solved
How do I create hierarchical data with a model?
Oh wonderful, I haven't heard of that one and by the docs and activity it certainly looks like it's well maintained. I'll have to try it out!Chris Oliver replied • Solved
Is there a better way to simplify this?
You can customize it, but that's the inferred default name.Chris Oliver replied • Solved
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