Ruby on Rails Community Forum
PDF generate
1
Rails
I am using PRAWNS gem and i need to know how to generate pdf using prawns in a rails project
runte damaris replied
Turbo Stream - dynamically replacing partial on the page
6
Rails
I have an edit user page that has multiple cards on it. I have each card wrapped in its own turbo frame tag with a unique id. On the update action in my controller if I just redirect_to @user the s...
Group Chat with ActionCable: Part 7 Discussion
30
General
Hi! response for the new userundefined method `last_read_at' for nil:NilClass for Chatrooms#show how to solve?
FX replied
Devise: current_user not saving to @forum_post.user
1
Gems / Libraries
I'm currently having an issue when I create posts, I always seem to get undefined method "username" or "email", but when using current_user.username or current_user.email it will display just fine....
Failed to run sidekiq properly to heroku
0
Rails
After deploying sidekiq to heroku, everything works properly except when I try to run a job I get this error Redis::CommandError: ERR invalid password
John Nonso posted
Issue when adding Confirmable in Devise - [ArgumentError - wrong number of arguments (given 0, expected 1)]
0
Rails
I've been setting up Devise Confirmable for my development environment Rails 5.1.7 app.
My initializers/devise.rb looks like:
Devise.setup do |config|
require 'devise/orm/active_record'...
Turbolinks 5 Forms for Mobile Discussion
7
General
Chris, great episode!I'm really interested in learning more about turbolinks 5 and creating hybrid apps. I would love to see more, even the more basic/beginner stuff.Thanks!
How do I get Multiple Output files with cssbundling-rails and Tailwind.
1
Rails
It took me a couple of days to find this answer:
https://dev.to/nikz/multiple-output-files-with-cssbundling-rails-and-tailwind-3b4k
A Tutorial here might help.
Chris Oliver replied
How do I insert smart variables with a text editor?
5
Rails
I would really appreciate some insight to how you could let a user select from pre-definied variables in a dropdown and insert them into a text area; some people have mentioned saving a liquid and ...
Leon Entrup replied
I get error when deploy to heroku
1
General
I get error when deploy to heroku
Here is the log file:
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
! Warning: Multiple default buildpa...
Alan Reid replied
How do I use nested blocks passed to a method? (metaprogramming?)
0
Ruby
Hi guys! So i am totally lost with something: I need a class that creates a pseudo xml output (only nodes). This class has a builder method (a class level method) which receives a block, and accord...
Miguel Ricardo Gomez posted
Unable to deploy TailwindCSS on a Rails 7 app to Heroku. Can someone please help me?
0
General
I'm currently trying to deploy my rails 6 application to Heroku.
I'm not sure where the error is coming from since the styles work well on development but break when pushing to production.
...
Medves Larisa Viviana posted
CSRF logging me out
0
Rails
Rails 5, Ruby 2.7.
I'm getting the dreaded error "Can't verify CSRF token authenticity." and I'm being logged out and my tokens don't seem to match. This is happening on a new development machine (...
Bruce Lulu posted
Rails 6, Webpacker and Docker on Apple M1
0
Rails
Hi Chris,
I tried to leave a comment for episode #389 but was not successful. Not sure why. Anyway, I'm developing in Apple M1 and trying to dockerize a Rails 6 application, but running into a lot...
Gabriela Jack posted
how i can implement this functionality
0
Rails
Seller can perform CRUD on his/her listing(product i.e laptop)
Seller can upload multiple product images.
faheem ismail posted
JavaScript functions disappear when using Rails 7
2
Javascript
Hi,
I'm using Jumpstart Pro with Rails 7 and feel very confused as to what's happening with my JavaScript functions.
I have a Lessons view in which various buttons are used to play audio, switch ...
benjaminhouy replied
Heroku Error - We're sorry, but something went wrong.
2
Rails
Hey Guys,
I deployed my app to Heroku but I am getting the "We're sorry, but something went wrong.
" so I ran heroku logs and this is what I got:
```
2019-11-07T18:45:20.355498+00:00 app[web.1]:...
How to solve this problem while installing ruby
0
Ruby
I am trying to install ruby using "asdf" and while installation i got this error.
--------------------------------------------------------------------------------------------------------
BUILD FA...
RAJAT SHAHI posted
How to use Rails Request.js Discussion
4
General
Hey Chris, this looks like a great addition to rails and thanks for adding the turbo stream support!
I'm working on an infinite scroll where at the end of the page a stimulus controller gets the n...
How do I take over an existing code base?
2
Tips
Hi, everyone. This is my first post here. I'm taking over an existing Rails 6 project that is in production (and that I haven't worked on before). There's a lot to think about :-) Has anyone compil...