Ruby on Rails Community Forum
How to make a good Sidekiq job?
2
Gems / Libraries
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...
shakycode replied
Flexible Nested Attributes
5
Gems / Libraries
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...
Chris Oliver replied
Flexible Nested Attributes
0
Rails
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...
Terence Devine posted
Simple newsletter sign up?
17
Rails
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've ...
shakycode replied
Mobile App with Devise Facebook OmniAuth
2
Gems / Libraries
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 a...
shakycode replied
Import CSV data using RubyZip and Postgresql COP
7
Gems / Libraries
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 importing ...
Chris Oliver replied
Nested attributes with collection_select not saving
11
General
In my edit form I simply cannot figure out why collection_select isn’t saving the various values when it's nested. It works fine if I use a {multiple: true} and pull it outside of the fields_for ev...
Sean M replied
JSON for Rails delegated attributes?
3
Rails
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 prosp...
Brian Schwartz replied
New Video Ideas
0
Site Feedback
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...
shakycode posted
Storing Constant Date in Rails
2
Rails
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 m...
shakycode replied
Error Handling in Ruby 4+
8
Rails
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 well...
Jeff Wilson replied
Multiple Rubies using Rbenv
4
Ruby
I'm having total brainfog right now with rbenv, so please excuse the newbie question.
I have rbenv installed and my global ruby install is `1.9.3-p194` which I've developed multiple apps in. I'm ...
shakycode replied
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
When to use scoped models?
1
Rails
In `Refactoring CSV Uploads with ActiveModel::Model Download` , you make a scoped class `User::Import`.
When should we use scoped class like this?
And, how does it different from `rails generate ...
Chris Oliver replied
Any good regex rules for validation?
4
General
Currently, i am searching regex rules for validate url. And i am struggled how to build this from scratch. Is anyone have a good resources on this topic?
shakycode replied
Best way to render a page as a PDF
5
Gems / Libraries
I have tried several methods including PRAWN to generate PDF's. It seem there must be a better way. What is you recommendation?
John van Arkelen replied
Best way to render a page as a PDF
0
Gems / Libraries
I have tried several methods including PRAWN to generate PDF's. It seem there must be a better way. What is you recommendation?
Damon Delcoro posted
Dynamic view based on associations
5
Rails
I'm trying to add some view logic functionality to one of my apps. I have a "run" view that lists all runs and splits them up in a partial between active and pending. Each run also `belongs_to :r...
Chris Oliver replied
Suggestions for messaging
2
Rails
I'm working on a couple different apps right now. One is new and one I'm refactoring some new functionality into. I'm looking to add messaging between users in both apps.
I'm up in the air on th...
shakycode replied
Javascript frameworks videos?
11
Javascript
Hey Chris,
Just curious if you would plan on adding any videos using Angular, Ember or Backbone with Rails?
Thanks!
shakycode replied