error while setting up ruby on rails
solved using https://discussions.apple.com/message/12602272#12602272
oliver replied • Solvedsolved using https://discussions.apple.com/message/12602272#12602272
oliver replied • SolvedHey Erik, Yeah it seems as though it's not accounting for the post favorites for the user after checking rails console so I think I found my main issue in the `favorites_controller`. I need to r...
Rob Sturcke replied • SolvedHmm, this I'm not sure of. Someone with more knowledge of transactions and/or validations may have a solution if it's even possible... From my understanding, a transaction gets rolled back as soon...
Jacob Montgomery replied • Solved@Chris After spending almost half a day on searching why the bug was still occuring even if I tried your code, I finally found the solution from [this answer](http://stackoverflow.com/questions/206...
Lykos replied • SolvedSorry was just testing something out :)
Alan Reid replied • Solved+1
Ignacio Alonso replied • SolvedThanks!
Stan Smith replied • SolvedI can't believe I didn't think of that... Yeah, it was a validation failing on a `username` column that I have. Thanks Chris
Nino Rosella replied • Solved![thumbs up](http://i.imgur.com/F0sAGUr.gif)
Chris Oliver replied • Solvedadd_reference :table_name, :column_name, unique: true, foreign_key: true I think ;)
Félix Landry-Audet replied • SolvedPerfect. Thank you for the hint. I've resolved it like this: Form: ``` <%= f.select :brand, Brand.all.collect {|x| [x.company, x.company]}, {}, :multiple => true, :size => 8 %> ``` Co...
Sascha M. replied • SolvedAwesome! 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 • SolvedI'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`<%= f.fields_for :foo_permit, OpenStruct.new(f.object.foo_permit || {}) do |permits| %>`
Francisco Quinones replied • SolvedOh 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 • SolvedYou can customize it, but that's the inferred default name.
Chris Oliver replied • SolvedThanks Chris!
Félix Landry-Audet replied • SolvedYou'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 • SolvedThanks Chris. Yeah I haven't worked that much with cookies even though they've been around forever. I'm currently working on using the Javascript approach which I think will be perfect for maintain...
Lance Williams replied • Solvedwould 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