All Questions
Tagged with ruby-on-rails-7 rubygems
32
questions
0
votes
0
answers
35
views
How do you make Javascript work in rails engine?
I have added these gems in Gemfile
gem "sprockets-rails"
gem "importmap-rails"
gem 'stimulus-rails', '~> 1.2', '>= 1.2.1'
gem 'hotwire-rails', '~> 0.1.0'
gem 'turbo-rails',...
0
votes
1
answer
60
views
can we get all tweets of the user from twitter using x gem rails
I am new to this rails community. Lately I am working on sceanrio for my side project where, I need to fetch tweets from twitter of particular user using Rails.
I have came down to these repo for ...
0
votes
1
answer
13
views
Pointing gem source in new Rails app project
I'm trying to run new Rails 7 app project in offline environment. I have configured npm, yarn, nvm and gem artifactory remote repositories. I have specified in .gemrc file the sources values pointing ...
0
votes
0
answers
154
views
why am i getting an 'unable to lock database: permission denied' error when installing mysql for rails 7 on windows
I have been trying to create a new rails app using mysql and both my windows and linux (ubuntu 22.04) machines are refusing to work. Linux just constantly gives me an access denied regardless of the ...
1
vote
0
answers
98
views
bin/rails aborted! Load Error: 126: The specified module could not be found
i am trying to create an application named blog using rails and i encountered the following error message, What can i do to resolve this?
bin/rails aborted!
LoadError: 126: The specified module could ...
0
votes
2
answers
953
views
Getting in `require': cannot load such file -- ffi (LoadError) after installing gem 'font-awesome-sass', '~> 4.7.0'
Im using windows. I wanted to include font awesome icons to my project and so I added gem 'font-awesome-sass', '~> 4.6', '>= 4.6.2' to my gem file did a bundle install and got this:
Fetching ...
0
votes
0
answers
111
views
jsonapi-serializer - Return slug instead of id for relationship
I'm using jsonapi-serializer to serialize my objects.
I want to return slug for the original model and also all the association(relations).
product_serializer.rb
class ProductSerializer < V1::...
0
votes
1
answer
106
views
Rails s aborded
For some reason "Rails s" starting to respond this error :
<internal:/Users/eliseserres/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': ...
3
votes
0
answers
141
views
Rails-7 ArgumentError Unknown key: :on. Valid keys are: :if, :unless, :prepend | mongoid-paperclip
I am a beginner I am trying to migrate Rails 4 to rails 7.0.6 for upload image i used
mongoid-paperclip
gem 'mongoid', git: 'https://github.com/mongodb/mongoid.git', branch: 'master'
gem 'mongoid-...
0
votes
2
answers
2k
views
ENV variables in Rails 7.x
This might be silly but I need help in finding where my ENV file is. I am unable to view my ENV file.
When I started my rails app, some of the values were ENV["var_name"], eg: ENV[" ...
2
votes
1
answer
420
views
Undefined method `escape' for URI:Module (NoMethodError)
When I run this command this error shows up:
qppn@MacBook-Pro hello % motion support
/Library/RubyMotion/lib/motion/command.rb:140:in guess_email_address': undefined method escape' for URI:Module (...
1
vote
2
answers
52
views
Getting all nested objects belongs to a model
I have a Location model that can have many sublocations, or one parent location.
Let's say location-A is a parent location, has location-B and location-C as sublocations. But location-B also has a ...
0
votes
2
answers
58
views
How to render code from db and make it work in erb file
I have some markup like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
xmlns=&...
0
votes
0
answers
50
views
acts_as_votable is not working in Rails 7
I made a partial render "_likes.html.erb" as follow
<%= pluralize(post.get_likes.size, 'Like')%>
<% if current_user %>
<% vote_text = current_user&.voted_for?(post) ? &...
0
votes
1
answer
333
views
Devise: update password succeeds without password confirmation & without respecting min length
In my registrations edit form, I have the basic password change logic implemented. When I wanted to style the error messages, I tested the functionality for the first time and I ran into two major ...