Skip to main content
How to add records to has_many :through association
Rails • Asked by Wesly Mezarina
I have three models called Site, Model and ModelSite as shown below. If i create a new model_site i can choose a site and model to save which works good but what i need help in is how can i choose ...
6
posts

How to make a good Sidekiq job?
Gems / Libraries • Asked by Tang Rufus
From the [Sidekiq wiki](https://github.com/mperham/sidekiq/wiki/Best-Practices#2-make-your-job-idempotent-and-transactional), a Sidekiq job should be idempotent and transactional. How should we imp...
3
posts

Select Form Helper Required True Not Working
Rails • Asked by shakycode
I'm doing a very simple select field in a form which looks like this: ` @run.phys_option), :include_blank => true, :required => true, :class => 'select' %>` This works with basic ...
4
posts

Deploy and delete text!
Servers • Asked by Artem Kiryanov
Help! When i deploy my app from local machine to vps, my local image, text and another information have been deleted! How can i fix it?
3
posts

Import CSV data using RubyZip and Postgresql COP
Gems / Libraries • Asked by Jay Killeen
I've checked out the videos on importing data to your rails app. Very timely as I am deep into this feature bringing data from all our legacy systems into my rails app. My issue is I am importin...
8
posts

Populate dropdowns based on selection
Javascript • Asked by Jay Killeen
I'd like to get people's thoughts on the best approach. I'd like to have a search ability where once a selection if made, the next dropdown box populates with only the available options from the...
3
posts

Advanced routing setup
Rails • Asked by Thomas Bush
I recently watched the [look into routing video](https://gorails.com/episodes/a-look-into-routing). I have a very complex routing scenario I have been asked to set up for work. I was hoping I cou...
8
posts

Tracking Rails App Usage with Analytics
Rails • Asked by Jay Killeen
Hi I notice this site uses Google Analytics to track usage. Is that the standard when it comes to tracking your rails apps? I know it is generally pretty standard in the case of my websites but ...
4
posts

Flexible Nested Attributes
Rails • Asked by Terence Devine
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
1
post

Simple newsletter sign up?
Rails • Asked by Gareth Gomersall
Hey Chris and all other members of this forum.... I'm trying to create a single page rails site, for a new app that i'm trying to build myself (it's called Nibli, and it's on nibliapp.com). I...
18
posts

Other intermediate-advanced ruby/rails websites?
General • Asked by Boris Baskovec
Hi, I don't know if it's allowed here, to talk about other resources to learn Rails and ruby, but I'm looking for more intermediate-advanced guides and/or screencasts that are up-to-date I'm ...
4
posts

Importing datasets. Recommendations?
Databases • Asked by Brent C
I have a few datasets that I need to import into my rails app. They vary from 100 records to 5000 which will span across a few models with various associations. Q.1: I can cleanse the data prio...
6
posts

Mobile App with Devise Facebook OmniAuth
Gems / Libraries • Asked by Tang Rufus
My Rails 4 app is using Devise and Facebook OmniAuth. The web app is working perfectly. Now I want to make a iOS app to consume my rails app's API. Instead of telling iOS users to type in their...
3
posts

Pundit for RESTFUL actions on Model fields
Rails Solved • Asked by Jay Killeen
Hey does anyone know how to use Pundit to control a users ability to edit a field. I'd like all users to be able to change simple things like their name but I want admins to be the only one's who c...
4
posts

Displaying an address from a selected location
Javascript • Asked by shakycode
So in a form I have locations which are set in a `collection_select` statement in the form. Each location has a name (Dairy Queen, McDondalds, etc) and has an address in the Location model. When ...
13
posts

JSON for Rails delegated attributes?
Rails • Asked by Brian Schwartz
In one of my Rails apps, I have the following architecture (as part of a current refactoring): - Contact (a lot of attributes common to all people) - Prospect (specific attributes to just pro...
4
posts

Error Handling in Ruby 4+
Rails • Asked by Nathan La Barbera
Does anyone have any thoughts or why this might be a bad practice? I am using the following code as the last route within my routes.rb get "*path", to: redirect('/') It seems to handle very...
9
posts

Storing Constant Date in Rails
Rails • Asked by Michael Victor
What is the best way to store a set of constants like country names, currencies, city lists in a rails app? I was thinking of having a model named Constants that stores all this data and another...
3
posts

New Video Ideas
Site Feedback • Asked by shakycode
I was watching CodeSchool's "Feature Focus" the other day. This is where Greg and Carlos look at a popular site/app and pick a piece of functionality to focus on and write it themselves. They the...
1
post

Javascript frameworks videos?
Javascript • Asked by Brian Schwartz
Hey Chris, Just curious if you would plan on adding any videos using Angular, Ember or Backbone with Rails? Thanks!
12
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.