Ruby on Rails Community Forum
Can't modify frozen String
0
General
Hi guys, I'm tring to execute rspec to run my tests and I'm getting a error
Failure/Error: visit 'http://google.com.br'
FrozenError:
can't modify frozen String
Any ideas h...
rodrigomerlo posted
GEM dependencies for implementing Google Pay and Apple Pay in Ruby
2
Gems / Libraries
We have an ecommerce website using Stripe as the payment provider and want to implement Google Pay and Apple Pay. For background, we are running a lot of out of date GEMS and Ruby is currently at v...
Xst996 replied
Namespace rails belongs_to
1
Rails
I have the following configuration
module Account
class Permission
Lidia Wisniewska replied
How to build something like a Youtube advertisement system
2
Rails
Hi Chris,
I am pretty sure they have a complex system implmented but at the basics of it, how could you go about implementing an autoplay advertise video before the actual video itself starts to p...
Darren Booker replied
Need a hand with associations
6
Rails
I have a users model, and an accounts model. Basically I would like to have...
- An account has one owner
- An account can have many users
- Users can only be a member of one account.
Does the fol...
Ivan Raszl replied
How do i create and custom module with view
1
Rails
Planning to create a generic module for filters in my app.
Is there a help where i can see how to create the modules and how the file structure would be for that?
Ivan Raszl replied
Video idea: Google insights
0
Rails
Hi Chris,
Would be nice to see a video about optimizations for rails for better score in google's page speed test.
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fgorail...
Pedro Carmona posted
How to mark a post as read, so that it won't show up again for a user?
6
Rails
I was looking at the unread gem but it seems a bit complicated and many seem to run into difficulty with it.
Instead, I was thinking of adding an 'already_read' column (boolean) to the post mode...
Monroe Mann replied
How do I set the active tab on the tailwindcss-stimulus-components
2
Gems / Libraries
Hi Chris,
I am using the tailwindcss-stimulus-components on a project. The tabs work great, but I can't find how to set the active tab. The problem is that I have different links to forms in each t...
Edmundo Ramirez-Semprit replied
Medium.com style URLs for username
1
General
Hi everyone,
I'm implementing a username system in my app, and I'm trying to make the URLs pretty. I'd rather not have anything like:
```
https://www.myapp.com/users/joebloggs
https://www.myapp.c...
Ivan Raszl replied
How to use Twilio Markup Language (TwiML) in Rails Discussion
0
General
Hi, It is a good idea to send a bunch of SMS messages after create action?
It will be better to put it in background job wouldn't?
Like with batch emails.
Jaroslav Horák posted
Jumpstart Template
1
Rails
I followed this tutorial (https://github.com/excide3/jumpstart), when I go into powershell and enter EDITOR=subl rails credentials:edit it comes up as a empty file. If I try and migrate the Databas...
Tom Marler replied
Ruby on Rails: gem devise session logged in
1
Rails
I have two tables, company and employee, so I would like when I register an employee, his registration was also for the company that was already logged, that is, without having to have to choose wh...
Ivan Raszl replied
how do i solve this problem related to ruby installation?
0
Ruby
when i run this command :
rvm install 2.6.3
I get this error:
[Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/18.04/x...
bondka posted
Accounts middleware and integration tests?
0
Testing
Hi folks —
I'm a big fan of the Accounts Middleware pattern introduced about a year ago in this tutorial:
https://gorails.com/episodes/rails-active-support-current-attributes
Super powerful. Appl...
Dan Charlesworth posted
Redirect show to edit mode always
0
Rails
Hi, I want to work always in edit mode and not in show mode. So when i go to show a object, I want to be in edit mode.
How I can make this possibile? First I think that I can put a redirect in show...
AlessioVaralta posted
Apartment and Heroku
0
General
I am trying to implement Apartment. It works fine in development but the app won't load on production. I get this error:
Apartment::TenantNotFound (One of the following schema(s) is invalid: "oca...
Steven Fried posted
Action text rails 6
0
Rails
Hi Chris,
i cannot upload the images from rich text drag and drop to s3 from dev.
my development .rb
`config.active_storage.service = :amazon`
my storage.yml
```
local:
service: Disk
root: ...
Pratima Singh posted
Token Authentication with Rails, Vue, GraphQL and Devise
0
Rails
Check out [this article](https://engineering.doximity.com/articles/token-authentication-with-rails-vue-graphql-and-devise) on auth using Vue + GraphQL and the battle tested Devise gem. All feedback...
James Klein posted
Ruby on Rails hiring / iMode d.o.o.
0
Ruby
Hi Go Rails
We are hiring developers on ruby on rails. Any freelancers from Slovenia, Croatia, Serbia?
Best regards
Denis Jasar / iMode d.o.o. (denis.jasar@imode.si)
DenisJasar posted