How do I properly Shallow nest while doing a Many to Many association?

1
Rails
So I am teaching myself rails through online tutorials and such. I have followed many on how to make a CRUD. I have learned about nested routes and how to accept attributes and dependents, etc. Now...
Brendan Feltrup-Exum replied

Help with Rails Application in Apache

0
Rails
I need help with getting a rails application working with Apache. I have the following virtual host configuration ServerName concerto DocumentRoot /usr/share/concerto/public RackEnv ...
Keith posted

Need help setting up development environment for an project named Noticed (Open source)

2
Rails
Hi all I am trying to start contributing to the open-source world and so I am trying to setup Noticed gem locally (https://github.com/excid3/noticed). I have my postgres server up. After installi...
Chris Oliver replied

"NoMethodError: undefined method `deep_symbolize_keys'" when trying to deploy my application

2
Rails
Hey I followed the deploying guide for Ubuntu 20.04 LTS. When deploying my application I get the following error. Googling around I haven't been able to locate any leads on what to do... anyone h...
Solved

Best way to grant a user specific permissions

5
Rails
Trying to determine which way I should handle this. Normal User adds a post to our system, he then has the ability to update and delete this post. In the future he may assign other users the abili...
oomis replied

User model guidance

1
Rails
Hi All, I'm creating a coaching app and have two users that use the system a coach and a client. A coach can also be a client of another coach. So I will need to be able to switch accounts to eith...
Chris Oliver replied
Solved

Announcements

1
Rails
Hi Chris, How do you do the announcements in Hatchbox? Thanks, Steve
Andrew Porter replied

Richtext with Nested Attributes in form

0
Rails
This may have been covered but i've got a form with a nested attribute, which I want to include a rich text form with trix/action text. When submitting the form rails all of a sudden ignores the "f...
Tim Dowling posted

How do I display errors messages from devise in the same page?

1
Rails
Hello, Chris! I have a rails appp, and I'm using Devise (without simple_form). My registration form is in my homepage, root_path. I followed the tutorial from Devise and I'm able to register users...
sakio replied

Problem with the load of view of sign_in with Devise Rails 5

0
Rails
I have the views of devise in views/users, but I have one layout for all app in aplication.html.erb, but the devise i dont want to renderize with this layout, so I create a sessions controller and ...
Thomaz Wanderbruck Schmidt posted

ActionController::Parameters.new.require(:person)

1
Rails
Hello, Note:I configured the App with config.action_controller.action_on_unpermitted_parameters = :raise. Assuming I have a Model Person with attributes :name, :age. If params = { name: "penguin...
Penguin replied
Solved

Action Text Colours & More Heading Options

0
Rails
Hey Chris - Is it possible to add a colour picker to action text, i.e. select some text and change its colour? Seems like a basic thing that should be included. It would be great if there were mor...
Brian Gilbank posted

How do you group by week for a month of records, but only find dates for the month.

0
Rails
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_count...
Darion Wood posted

Soft delete Active Text in Rails 6

0
Rails
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 th...
majoingsw posted

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

0
Rails
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. Spr...
Abhishek Aravindan posted

Nested Parameters returns ActionController::Parameters rather than parameter value

5
Rails
Hello, With the payload: { "ref": "The penguin ref", "object":{ "a": 300, "b": 30000, "c": 10022 } } params.require(:stuff).permit(:ref, object: [:a, :b, :c]...
Chris Oliver replied
Solved

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

0
Rails
With some code
elie kazad posted

Date Picker for Rails App

1
Rails
HiWhat would be the recommended data picker for my Rails app?Seem to be  a lot of options but many haven't been maintained in a while.Thanks 
Abhinay kumar replied

How do I create a delete button for images uploaded with Active Storage

2
Rails
I am creating a user interface for users to upload images and delete ones they've already uploaded. It is using Rails 5.2 Active Storage and Amazon S3. The issue I am experiencing is similar to t...
Dmitriy replied
Solved

How do you save draft records with ActionText?

0
Rails
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...
raguila8 posted

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.