Skip to main content
0 votes
3 answers
1k views

I'm trying to build a simple blog, where a post has many comments and the comments are displayed on the posts#show page. I have two bugs which I cannot figure out: Validations for my comments are ...
2 votes
2 answers
3k views

I am trying to deploy to heroku and getting the following error, which is below. I would appreciate any tips or help on solving that please. Preparing app for Rails asset pipeline Running: rake ...
15 votes
12 answers
6k views

I'm following the rails tutorial book and using the c9.io web IDE as I follow the tutorials. While working on my sample application, I noticed that exceptions aren't being shown on the page in while ...
3 votes
3 answers
9k views

Stripe will not accept payments, the charge keeps failing. I am getting this error: Started POST "/charges" for 127.0.0.1 at 2014-06-09 06:30:58 -0700 Processing by ChargesController#create as HTML ...
3 votes
1 answer
9k views

I'm trying to access third party api using TLS 1.2, but getting SSL error event with valid certificates Ruby Version: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] Rails Version: Rails ...
1 vote
2 answers
893 views

I'm attempting to use global ids to specify polymorphic associations. However, when I want to reference the object through the association, no object is found. Consider the following models: class ...
14 votes
2 answers
19k views

I have a Rails application with one model (following a tutorial) and I forgot to install the gem Rspec at inception. I have now done it but the Spec files and folders don't show up. I have read the ...
0 votes
1 answer
12k views

I have a rails app with a bit tricky model as you see. App is able to create tasks for a given user. I'm using the controller/form below. Obviously when I create task for sby I have to fill the :...
42 votes
5 answers
21k views

Given the following ActiveModel::Serializer class: class SampleSerializer < ActiveModel::Serializer attributes :id, :name end How can this be tested with RSpec?
218 votes
19 answers
174k views

There's a strange issue with Rails 4 on Heroku. When images are compiled they have hashes added to them, yet the reference to those files from within CSS don't have the proper name adjusted. Here's ...
0 votes
2 answers
12k views

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): app/controllers/posts_controller.rb:27:in `new' # GET /posts/new def new if params[:post] @post =...
29 votes
6 answers
16k views

I am having trouble pushing code to Heroku. I have an account but I've forgotten the password. I created a new account and tried to push with it but now it shows me this error: Your account ...
4 votes
1 answer
11k views

Ok so I have a rails application called HashtagMapper.com which finds tweets by the thousands and maps them. The problem I am having is that between geocoding 1000+ queries can take up to 10 seconds, ...
7 votes
3 answers
3k views

I'am trying rails-api gem with jbuilder and i can't seem to make it work Here is a sample of my rails-api controller / jbuilder views Gemfile gem 'jbuilder' Controller app/controller/...
5 votes
2 answers
692 views

Has anyone tried JasminRice gem with Ruby on Rails 4? I've got an Ember.js Ruby on Rails 4 application, and I would like to use Jasmine Rice, but I'm not sure whether it would work out well as their ...

15 30 50 per page
1
2 3 4 5
2446