How do I display errors messages from devise in the same page?
I'm utilizing devise and I put the login and sign up structures in a similar page, presently when I compose invalid login subtleties or don't fill required information at the sign up structure. I'm...

2
Rails
ActionController::Parameters.new.require(:person)
I ended up also disabling wrap_parameters: wrap_parameters format: []
So now I can simply do params.permit(:id, :name, :age).
Not sure if there is a better way.

2
Rails
How do you group by week for a month of records, but only find dates for the month.
arget_date = Date.today.beginning_of_month
target_range = target_date..target_date.end_of_month
Post.where(created_at: target_range).group_by_week(:created_at, range: target_range).sum(:view_co...

1
Rails
Soft delete Active Text in Rails 6
Anyone is using Active text on a controller with paranoia?
I added Action Text to my Post to have the `content` be rich text but when I soft-delete a post the `content` is deleted. If I restore ...

1
Rails
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/ Error while bundle exec rake assets:precompile during deployment using capistrano
I already have nodeJS installed in my server. Still showing
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
I have sprockets as well as webpacker....

1
Rails
ruby on rails nested model relationship and routes
Thanks guys.. Got it working tonight. You were right Monroe, once you get the nested routes working the Friendly ID was a snap to implement. Am very happy with what I ended up with. Thanks again!
...

11
Rails
How do i get the distance between each driver and pickup point (driver are user of thy 'driver') using the here maps api, rails app
With some code

1
Rails
How do I create a delete button for images uploaded with Active Storage
Is it working properly?
```
@space_image = ActiveStorage::Blob.find_signed(params[:id])
@space_image.purge_later
```
I've found this way doesn't work correctly — the image still connected (.attach...

3
Rails
How do you save draft records with ActionText?
I saw Chris's episodes on autosaving draft records with draftsman, but the gem is a bit outdated now. It hasn't been updated in over 2 years and the highest supported version is rails 5.2. Has anyo...

1
Rails
Trying to relearn CSS and I'm stuck
I'm trying to figure out how to do a simple animation. I have a box with some text content, the idea is that the box only shows an h2 element until the user mouses over it, then it reveals the para...

3
CSS
How come so many solutions to solving layout problems are just: put <div> wrappers around your <divs>
I'm just a noob, but feeling layout frustrations. CSS is so 'artsy' to me, in that there's 30 ways to do everything, but none of them actually work unless you've aligned the stars correctly.
Prett...

2
General