NameError (undefined local variable or method `fetch_records' for ....

3
Databases
Hi, I'm getting this wierd error. ``` NameError (undefined local variable or method `fetch_records' for #): app/controllers/admin_controller.rb:69:in `block (2 levels) in comments' app/controller...
Victor Nizeyimana replied
Solved

What's the best way to.... store predictable but not essential attributes for a model

1
Rails
To be clearer - predictable but not essential, and always inheriting from defaults. I have a series of sites based off the same codebase that at present I load with a settings file in application....
David Lowry replied

Started to learn JS, now I'm just overwhelmed. Please help.

2
Javascript
Hello everyone,, After learning the basics of the languages I listed above, I decided to try and expand my knowledge of web development. When I started doing my research I was just overwhelmed by t...
Jim Ryan replied

video about sortable lists

21
Rails
Hi, I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping. I tried to implement the solution by Ryan Bates in...
Anthony Candaele replied

Need a Best CMS for Rails App Landing page

2
Rails
Hello Guys, I am trying to have a CMS in my rails app that should be very easy to implement and very flexible so that site users can do messing with the content/styling of different pages. I did s...
will replied

Devise Masquerade as another User Discussion

24
General
Great video, can you explain more about the page.resources? where that is coming from and how it contains the user info for that method. Thanks
Someone replied

Multi-URL Website Setup/Architecture

0
Rails
Lets say you want to set up a forum site at mainforum.com. Then you want to add a subdomain where the URL xyz.com would point to something like xyz.mainforum.com. All of xyz.com's forum questions...
Ryan Carter posted

How do I remove Devise::Trackable from my app?

1
Gems / Libraries
I'd like to remove the Trackable module of Devise. Is it as simple as removing `:trackable` from the `devise` line in `User.rb` and then creating a migration to remove the columns created for the ...
Chris Oliver replied
Solved

Guidance how to structure models for site credits / user balances

2
Rails
Dear GoRails-Community,Super happy to finally have joined! Thanks Chris for building the site and community. Really love that it allows to discuss approaches which always gets downvoted on SO :)I'm...
Dolf replied

Devise models and Single table inheritance and custom class methods

4
Gems / Libraries
Hello there I am in a little fix and cant figure out whats going in, i am attempting to have a devise model User share via STI with 2 other sub-classes . I am able to populate both classes with dat...
JM replied

Implementing global app settings

3
Rails
I am wondering what the best way to go about setting up Settings for an application. Settings will consist of name, address, phone number, and some other project specific entries. What has me a lit...
RJ McCollam replied
Solved

Pre-populate association for nested form

2
General
Hi so here is what i have : class Attendance < ActiveRecord::Base belongs_to :attendance_sheet belongs_to :user end class AttendanceSheet < ActiveRecord::Base ...
JM replied

Testing and Session Variables

1
Testing
In my Rails 5 app I am using Pundit for authorization with a custom context. I have a multi-tenant application and I have an `Enrollment` model that joins my `User` and `Tenant` model. This was a...
Dan Tappin replied
Solved

Pundit Policy and has_many through Pt. II

0
General
Hey there, I decided to start another post although I read this one already https://gorails.com/forum/pundit-scope-and-has_many-through but I need to confirm that my query is on point. Here's my ...
Ivor Padilla posted

deploy Rails

2
Rails
I following the deploy rails instructions on GoRails. When I tried to install Ruby 2.1.2 with rbenv, I got this error message: "no acceptable c compiler found in $PATH" I solved it by runnin...
Anthony Candaele replied

Unable to configure cancancan with active_admin in rails

0
Rails
I am trying to make a blog website. I am using `active_admin` and `cancancan` gem. Two controllers I have made are `Post`, `Category`. **posts_controller.rb** ``` class PostsController < Inher...
pushpam kumar posted

Setup Windows 11 Discussion

8
General
In case you guys have Windows 10 like me: 1) Run PowerShell as administrator 2) Paste this command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 3) Restart...
Derek Hobson replied

Sortable Drag and Drop

8
Rails
Hi I am hoping someone can assist. I have gone through the tutorial of Srttable Drag and Drop. https://gorails.com/episodes/sortable-drag-and-drop All is working but once the drop happens I am g...
Clay replied
Solved

First argument in form cannot contain nil or be empty

3
Rails
Alright everyone, I would greatly appreciate your help solving this problem. Here is what I'm attempting to do; I have an articles controller and all the related views to create new article posts. ...
shakycode replied

How do I get bin/rails app:template LOCATION=.. to actually work? (rails template with existing app)

7
Rails
I remember Chris mentioning in the "Rails Application Templates" video that he was covering only templates for new rails apps because applying templates to existing apps is "complicated." I'm begin...
Jeff Helman replied

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

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

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