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
4 views
google maps zoom to fit bounds to display all poly lines
In the following Coffeescript code get the tracksegments from database and display all of them on the map (poly lines shape). i want to fit to zoom on map for showing all of poly lines. but this code ...
0
votes
1answer
5 views
Rails No Method Error for Schedule
I seem to be having a separate problem from the other guy who posted something like this. The following comes when I just go to my homepage which should have a form...
Any ideas on this sort of ...
0
votes
1answer
13 views
Will looking up parent document cause an extra query call?
I have two models.
class User
include Mongoid::Document
field :name, type: String
embeds_many :posts
end
class Post
include Mongoid::Document
field :comment, type: String
embedded_in ...
0
votes
0answers
10 views
CarrierWave + RMagick not processing images to correct dimensions
I am using the Streamio-FFMPEG gem to take screenshots from videos on AWS. The screenshot is saved to the video.screenshot column and ScreenShotUploader handles uploading the screenshot to AWS.
...
0
votes
0answers
4 views
Rails user can disable/enable nested form
Hello i would like to have a form with two nested forms. Example:
Registration User (main form)
Add Address (nested form)
Add Company info (nested form)
Now i have it working but i want that user ...
0
votes
1answer
12 views
Rails turn form to bootstrap form
At the time i have defined two search forms in my app:
How you can see the second form doesnt look so nice and disturbs my layout.
So my aim is to style the working form (second form) like the first ...
0
votes
3answers
17 views
How to create a model with a certain id using rspec and factory girl
I use:
gem 'rails', '3.2.11'
gem 'rspec-rails', '2.13.2'
gem 'webrat', '0.7.3'
gem 'factory_girl_rails', '4.1.0'
gem 'spork', '~> 0.9.0.rc'
I want to test my HP where I always have a link to a ...
0
votes
2answers
25 views
Adding/Updating column in a Model using RubyMine
I'm working on a web app that basically interacts with a db table through a form. Recently I had to make some changes which resulted in me adding another column to the db table. I'm using RubyMine ...
0
votes
1answer
12 views
Unable to receive recipient view url of docusign
I am using docusign_rest gem. I am creating template with
create_template
method and envelope with
create_envelope_from_template
method.
But when I was trying to retrieving the url for embedded ...
0
votes
2answers
22 views
Rails models has_many
Im starting to learn rails today and not quite sure how this would work:
Lets say I have a Company, the company may have many subsidiaries.
A subsidiary is a Company.
A company cannot be its own ...
0
votes
0answers
10 views
Getting more detail from rake assets:precompile?
Having a series of problems when using Rail's asset pipeline over the course of my project. Inevitably, I spend a few hours fiddling with whatever asset files I changed in the hopes of finding why ...
0
votes
2answers
20 views
Rails trying to connect to unconfgured MySQL on request
Seeing a weird problem starting a Unicorn server - bundle exec ruby unicorn_rails.rb starts okay, but when I visit a URL, it shows:
Mysql2::Error (Can't connect to local MySQL server through socket ...
0
votes
1answer
10 views
how to override HABTM table in rails
I am having using rails 3 and have an HABTM(has_and_belongs_to_many) between
users <-> emails
Also user have roles defined for users as subs, pubs which have a Model that references to itself for ...
0
votes
1answer
21 views
undefined method `save' for 15:Fixnum
I'm following this tutorial, http://guides.rubyonrails.org/ . In the tutorial, the examples just accept input from user and it's done. But in my code, after receiving input, i would need to get the ...
0
votes
2answers
21 views
Best practice: multiple CoffeeScript files on a page
I'm developing a page on my rails app that displays analytics data. It has to make several calls to the Flurry Analytics API to retrieve different events. I'm displaying each piece of data in a div ...