Ruby on Rails is an open-source web development framework written in Ruby. Ruby on Rails follows the principle of convention over configuration, freeing you from having to re-invent things to stay productive. Ruby on Rails 4.0 is the latest edge version available.
0
votes
0answers
2 views
Rails Asset Pipeline - wrong fingerprint
My Rails 4 application has new.html.erb which has a reference to form.html.erb:
# app/assets/templates/jobs/new.html.erb
...
<ng-include src="'<%= asset_path("jobs/form.html") ...
0
votes
0answers
3 views
Stubbing with FactoryGirl, MiniTest, and Rails 4
I am a big fan of FactoryGirl, but have never understood the ".build_stubbed" method and would like to incorporate stubbing/mocking into my TDD. Can someone help me with the basics of what kind of ...
0
votes
0answers
4 views
Sending message to ZeroMQ from Rails 4
I'm trying to send message to ZeroMQ from Rails 4 application.
I added gem "zmq" to my Gemfile, then I use this code in some method in my Application Controller.
context = ZMQ::Context.new(1)
...
0
votes
0answers
3 views
Any way for enumeration returned by first to allow find_each
I've got a rails method that returned a relation (from a query or all), or array of first n records, and the caller used #each to iterate. B/c sometimes the set of records is large, the caller should ...
0
votes
0answers
12 views
Filepicker.io Cross-Domain Restrictions [Rails4 + Turbolinks]
I'm having issues with Filepicker.io on my Rails 4 site. Specifically, I am occasionally getting the following JavaScript error message (about 50% of the time) when I try to upload a file via the ...
0
votes
0answers
7 views
uninitialized constant ActionController::IntegrationTest (NameError) when running cucumber tests
I have the following configuration:
Ruby 2.0.0-p247
Rails 4.1.0.beta
cucumber-1.3.5
cucumber-rails-1.3.0
When I run either rake cucumber or cucumber myfeature.feature, I get
uninitialized ...
1
vote
1answer
25 views
What are the associations for this model set?
I don't know how to set up this association between a few models. Any recommendations would be greatly appreciated. There are four models total. I posted a mockup of what I am thinking about for the ...
0
votes
0answers
21 views
Fixing ActiveAdmin stylesheet issues
I've set up activeadmin, but I had to pull the files out and put them into an assets/stylesheets and assets/javascripts subfolder called "admin", because the styles were inheriting into my main app ...
1
vote
2answers
30 views
Rails 4: How do I handle a submitted form where nothing was selected?
Sorry if the title is a little confusing. I have a form for an Item with the field name. There's a text field where the user can input a name and submit it. But if the user doesn't type in anything ...
0
votes
0answers
4 views
Using logger in Rails 4
I'm working on a Rails 4 project, and I can't seem to make anything show up in my development log when I call Rails.logger.debug "test" I've tried searching online but I feel like I haven't made much ...
0
votes
0answers
12 views
Issue with Heroku pipeline and javascript
I've recently deployed a Rails 4 site to Heroku and I've noticed a problem with my menu bar. I'm using Foundation so that, on small screens, the menu items on the navbar become a clickable drop-down ...
0
votes
4answers
48 views
can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1. Make sure all dependencies are added to Gemfile
I have Rails 4.0.0 app. When I run bundle install command there is no problem. This is my GemFile.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem ...
0
votes
0answers
13 views
Adding checkbox in form which was already created and prevent user for submit form when checkbox is unchecked
Hi I am newbie in rails.
My query is how to add checkbox in form which was already created and prevent user for submit form when checkbox is unchecked.
What are the steps require for it.
0
votes
0answers
13 views
Rails 4 - how do I use data and data structure of third party application for serving rails API?
I have written a Rails API which is basically dealing with users,entities and relationship and using that information defining some processes. This application will be consumed by some organizations ...
0
votes
2answers
39 views
How do I go about allowing a user to make a profile in Rails?
I want to make a profile for a user I generated with Devise and did this (in Rails 4):
rails g scaffold Profile first_name:string last_name:string school:string user:references
and then this:
...