For issues specific to the version 6.1 of Rails. If your question applies to Ruby on Rails in general, use the tag [ruby-on-rails]
Questions tagged [ruby-on-rails-6.1]
216 questions
0
votes
0 answers
RAILS 6.1 supports multiple has_one_attached in ACTIVE STORAGE?
There is an article describing that RAILS 6.1 will support multiple storage services in one model definition.
I was happy to update to RAILS 6.1 and tried it out.
My Model :
...
has_one_attached :accom_paper, service:…

Sven Kirsten
- 478
- 1
- 8
- 27
0
votes
1 answer
Ruby on rails data fetching issue
Hello i'm new to rails
I have a table named 'messages' which has columns current_user__id , to_user_id and created time
I am trying to build a chat application where different users can chat individually and those message will be stored at messages…

Manjula Mv
- 31
- 7
-1
votes
1 answer
Rails 6.1 — add `importmap-rails`, gem bundles but methods unavailable
Ruby: 3.1.2, Rails 6.1
Trying to add gem importmap-rails to an existing Rails 6.1 app.
The gem bundles, but neither the rake importmap:install task nor the gem helper method <%= javascript_import_tags %> are available.
In rails console, the class…

nimmolo
- 191
- 3
- 14
-1
votes
1 answer
Authorization issue with 3 types of roles using cancancan
I have the user table (created by devise), I added a role column, which can be: admin, manager and agent. And in user.rb I put an ENUM like this:
class User < ApplicationRecord
enum role: { admin: 0, manager: 1, agent: 2 }
end
I'm using cancancan…

Elton Santos
- 571
- 6
- 32
-2
votes
2 answers
Rails New 6.1 app unable to process any request besides default screen: Webpacker::Manifest::MissingEntryError
On a brand new rails 6.1.7.4 app, I'm getting the following error when making a request to any page besides the default "Rails::WelcomeController#index" screen:
Webpacker::Manifest::MissingEntryError in Blogs#Index
Reproduction steps:
rails new…

Neil
- 4,578
- 14
- 70
- 155
-2
votes
1 answer
Ruby on rails 6.1.2 Creating posts from index page
I just started studying Rails and I need some help.
I executed the command rails g scaffold posts title:string description:string, and I have generated some pages and a controller.
Page localhost:3000/posts shows me all my posts.
Page…