2 sites... 1 DB?
I don't see where there's any issue other than activestorage I have two sites running from the same database but I can't figure out how to display images
Fugee Ohu repliedI don't see where there's any issue other than activestorage I have two sites running from the same database but I can't figure out how to display images
Fugee Ohu repliedLate to the party and all that but if anybody is looking to seed their project database from a CSV file, the is what I enter in my seed.rb file(s): ''' CSV.read(Rails.root.join('lib', 'seeds', 'fi...
HP repliedHey there ! I'm trying to deploy on a private server following this tutorial with a rails 5.2 app and somehow when I cap production destroy, i get an error saying 01 SassC::SyntaxErro...
paul lahana repliedThat ERD thing has been incredibly useful, though not in this specific instance. This database is crazy. ActiveRecord uses AREL, and all it really is under the hood is an abstract syntax tree that...
Chris Zempel repliedI have a ton of many-to-many relationships in a CMS I built for work. I am currently using [Select2 3.5.3](http://select2.github.io/select2/) to assign these relationships. This all works well. ...
Thomas Bush postedFor those who are using Rails 7: Rails 7 has Hotwire enabled by default, and it will validate the response status code. For failed validation, the status code should be 422 (Unprocesssable entity)...
Michael repliedI think I finally figured it out. Took long enough but I figured I'd share it. ``` class Student < ApplicationRecord has_many :enrollments has_many :klasses, through: :enrollments scope...
Peter Marcano replied • SolvedSounds good! It sometimes just takes a little bit of mapping out what you've got vs where you need to be and then the pieces start falling together.
Chris Oliver repliedHey John, thanks for chiming in on this thread. You're right, I wasn't targeting the selected object. Doing `$('select#location_id :selected').data('modifier');` gave me an output of the modifer ...
shakycode replied • Solvedif you placed those classes in app/scripts wouldn't you have to wrap them in a module Scripts?
Aaron repliedYou can use [Vue validation](https://www.cloudways.com/blog/vue-validation/) plugins for that. Some plugins that I am aware of are: Vee Validate, Vue form generator and Vue validator
olidev repliedMy [examples](https://github.com/cmirnow/Twitter-toolkit-onRails/blob/master/app/services/twi.rb) of handling Twitter limit overruns. Hope this helps.
Alexey repliedGreat. What would be the recommended approach to achieve the same when using an API-only app?
Imallek repliedIt's not necessarily a single query that would illustrate the problem, it's how it's used that's the problem. That's why I say it's not something a more experienced developer may get caught by, but...
Jacob Montgomery replied • Solveduh ehm, okay didnt know that, is there a guide which shows how to achieve that? looks promising! thank you for that information!
Sebastian replied • SolvedI just upgraded an enterprise Rails 6 sprockets 3 app to rails 7, that used webpacker 4 built css and renders react components occasionally. It's about 8 years old so it was the craziest upgrade. I...
Aaron repliedFeel free to change any of the fixtures as needed. The tests are there to make sure the built-in functionality works as expected, but you'll need to adjust them as you build out your application.
Chris Oliver replied