Save 36% for Black Friday! Learn more

Rails Ruby on Rails Forum

ActionController::InvalidAuthenticityToken error

0
Rails
Hello, I'm getting ActionController::InvalidAuthenticityToken error, even after sending csrf token in the post request. On which cases, do i get this error can anyone please enlighten me. Th...
ravitej177 posted

ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):

3
Rails
How to resolve this issue: `ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):`
Alan Reid replied
Solved

Upgrade to Mojave on Mac OS

5
Rails
Hi Chris - I am running Sierra (not high Sierra) on my fairly new Mac (summer 2017). I need to upgrade to Mojave and am afraid I will break my ruby/rails dev environment (like I did when I upgraded...
Chris Oliver replied

How do we show dynamic data in .erb file like from a json file?

0
Rails
I have a view file index.html.erb in my view folder and there I am showing some data in the form of Table(bootstrap table) and this is a static table so I had to write so many lines of HTML for thi...
theshashiverma posted

Separate Asset Pipeline

1
Rails
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different sty...
Nelson replied
Solved

Where do this code go? (Refactoring Rails Workers)

5
Rails
Hey! I have two different workers ``` #app/workers/website_worker.rb class WebsiteWorker def perform(website) do_this_action(website) end def do_this_action(website) ... end ...
Arjun Rajkumar replied
Solved

Improve on these ActiveRecord requests?

4
Rails
I am trying to get the top 5 products, based on the impressions that product has recieved. Now the code below is working ok, but its not in the right order, and I cant work out a better way to get...
Alan Reid replied

Do I have to create a controller for users using Devise or where can I find its actions ?

2
Rails
I'm having some trouble setting up Paperclip gem to setup profile pictures for the users of my app and I need to access users_controller. Since I'm using Devise, I don't really know whe...
kadammanali987 replied

Accepts_nested_attributes_for, I am getting 'unpermitted parameter: :user' and User not entering to DB.

1
Rails
Hello! I am building an app with Accounts/Users & Memberships via has_many through. I am using Devise and want to create a new user from 'accounts#new" via 'accepts_nested_attribut...
Ryan Mindigo replied
Solved

How do I create my homepage subdomain ('www')

8
Rails
Hi, I followed the tutorial for subdomain from scratch and got " redirect_to root_url(subdomain: "www") if @account.nil? " but I don't know how to get to manage it as a hom...
Damian Nelwep replied
Solved

How do I create an app with Urls like 'https://username.website.com/' instead of 'https://website.com/username/' ?

17
Rails
Hello everyone, I searched but didn't find anything and was hoping like I said in the title of this subject, to find a way to get the url displaying a user's profile of a client's app ...
Chris Oliver replied
Solved

Professional grade authentication with a single command (in rails 5)

2
Rails
I've built authentication a few times now, and every time it's been 99.9% the same (save for a few tweaks in form validations etc). The machinery has been more or less identical to that fou...
S C replied

How might I handle event-sourcing?

2
Rails
I've *never* been happy with the way I've implemented certain kinds of features: * Notifications * Some kinds of reporting * Activity Feeds Then, I saw two things: 1. The "bucket/reco...
Chris Zempel replied

Raisl 4 : Exception Site(#70058148983820) expected, got String(#8388700)

0
Rails
I have a form with a selectbox which allow to select differents values. When I want to save the form I have an exception : ActiveRecord::AssociationTypeMismatch at xxxxxxxxxxxxxxxxxxxxx S...
Laurent Passebecq posted

Stuck on creating new record

4
Rails
I'm not sure why I'm so lost on this one, I dont rally have a ton of experience with Rails but I did a blog with basic CRUD functionality and that was all good but this new project its just...
Nelson replied
Solved

How to upload images to Rails API using S3

0
Rails
How can you upload images with ActiveStorage from the API? Backend: API Rails Frontend: Reactjs Github: https://github.com/nicobobb/graphql-rails-blog
Nicolás Bobb posted

New Ruby/Rails site with documentation

3
Rails
Hello, I'm with friends we build first for us and then decided to share with all developers new website with documentation - https://www.apiduck.io There are similar sites, we know, BUT becaus...
Ignacio Alonso replied

How do I migrate apartment gem to Heroku correctly?

4
Rails
I've implemented the apartment gem and am able to run it in my local environment. However, when I deployed to Heroku, the site won't load and I get this error in the logs `Apartment::Tenan...
Vitor Ribas replied

How do I return a scope that I think includes a select?

3
Rails
Hello, I have a Model called Orgchart and it contains a position. In the users table there is an orgchart_id for each user. I have a select box on a form and I want to fill it with all the posit...
Amie Fudge replied
Solved

impossible to start my project with RoR v 4.2.10

0
Rails
help me to statr my first projet with RoR. on installation rails v4.2.10 ( *impossible for my to install the last version => v.5.x*) before create my project with command : `rails new inspiron -...
kara posted
Solved

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.