Multiple user types App design
You can use a gem like cancancan to manage what your different user types can see and do
Daniel replied • SolvedYou can use a gem like cancancan to manage what your different user types can see and do
Daniel replied • SolvedI am setting up telephone validation for a Lead model. Leads have a field called :phone. I'm using phonelib to validate the contents of that field. My New Lead form is nested within a second model,...
Seth postedForgot to mention, I'm using clearance not devise. The answer to the second question seems to be no, but clearance does provide a method for doing exactly what I was attempting. So, part two solved!
John repliedHey Samantha, Can we see the rest of your form? You may have a nested form (as in a form within a form) or your f.submit is outside of the actual form_for block
William Kennedy repliedJust add to Rakefile the following command require 'sneakers/tasks'
lpiffer replied • SolvedI'm trying to upgrade rails but stuck on "bundle update rails" I'm following this article https://fullstackheroes.com/rails/upgrade-to-rails-6/
mikkycoder posted@chris Legend!! Thanks sir!
Stephen Sizer replied • SolvedI guess Digital Ocean uses Minio (https://min.io) and this issue is caused by some S3 API incompatibility. Unfortunately I needed to use AWS S3 as I dont like the monkey patch way.
Alisson Patrick repliedGlad to help!
Mylan Connolly replied • SolvedI'm trying to run a script but facing the error, I'm pretty new to the rails console. ```RAILS_ENV= qubole rails runner db/scripts/migrate_bulk_users_to_new_emails.rb /usr/lib/tapp2/db/scripts/mi...
kumar0205 postedAll the resources that you mention, but the proper "theoretical" https://testmyspeed.onl/ way to do it would be to test that @client receives add_message_callback, and then indirectly test your pri...
Kasey Sk repliedHello everybody, I have a model: account.rb, with has_many condition like this ``` has_many :purchases, -> { where(available: true, workspace_id: nil).order(id: :desc) } ``` Now I want to pas...
quydox postedThe migration to `strong_params` is definitely a big part. It's not complicated but it's quite tedious. A few years ago we wrote and published a gem that should take you 90% of the way there: https...
Ernesto Tagwerker repliedI found an issue like this today and it turned out that I had misspelled something in my configuration. I wrote `action_storage` when it should have been `active_storage` 😊 I know it has been a wh...
Ernesto Tagwerker repliedI cannot agree more regarding the performance improvement. I also think it's a good practice to avoid changing a string that we wanted to be static ;-)
Stéphane Paquet replied • SolvedHey Thomas, You probably already found an answer to this, but one of my co-workers wrote a couple of articles about this topic: - https://www.fastruby.io/blog/rails/webpack/from-sprockets-to-we...
Ernesto Tagwerker repliedFound this link on how to reference a blob for use with another model. https://github.com/rails/rails/issues/31674
Brian Carpenter replied • SolvedBeginner, playing around with Rails 6.0. I would like to allow the admin of a Rails site to change the site for all anonymous users who come to it: Settings like -how many articles per page whil...
sweedledee postedHey Alan, did your approach work? This worked for me: https://github.com/rails/rails/issues/35002
Anthony Lee replied0 I have created a partial that gets rendered on my index page, via AJAX. This works flawless. However when I access the route, that i also want the rendered partial to show up on, it renders wit...
Doctuh posted