Tagged Questions
Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.
0
votes
0answers
11 views
Heroku “We're sorry, but something went wrong” but works fine in the localhost
I am building a web app on Rails using Postgresql database and some gems.
The app works fine on the localhost.
But I deployed it to Heroku and this is where the problem begins. When I open the ...
0
votes
1answer
5 views
rake 0.8.7 db:migrate or db:seed runtime error, “stack level too deep”
Rake 0.8.7
Rails 2.3.18
RubyGems 1.7.2
I looked into the similar questions and they do not apply here:
Not doing any recursion in the task
Not using Bundler or RVM (if using bundler is the ...
0
votes
1answer
6 views
array of hashes to csv file
How do you convert an array of hashes to a .csv file that I can open in excel?
I have tried
CSV.open("data.csv", "wb") do |csv|
@data.to_csv
end
but it opens up and is blank
0
votes
0answers
5 views
Heroku crashes on deploying Rails application
my Heroku logs
2013-06-26T16:08:48.700236+00:00 app[web.1]: from /app/config/environment.rb:5:in <top (required)>'
2013-06-26T16:08:48.699748+00:00 app[web.1]: from ...
1
vote
1answer
8 views
undefined method `model_name' for NilClass:Class - ruby on rails application
I have form where a user submit a e-mail, its in the view: views/about/home.html.haml
The form looks like this:
= form_for @waitinglist do |f|
= f.email_field :email, placeholder: "Enter your ...
1
vote
1answer
6 views
Documentation on all of the plurals that rails generates/uses
Is there documentation on all of the common pluralizations that Rails uses and requires for their naming conventions?
e.g. in this model I cannot use 'persons,' rather 'people'
class Actor < ...
0
votes
0answers
11 views
Understanding how Rails migrations convert into raw SQL
I am trying to gain a better understanding of how rails migrations convert into raw SQL. Ideally I would like a tool that would take a rails migration file and display the raw SQL output. I have found ...
0
votes
0answers
4 views
Capistrano: How to deploy Sunspot Gems
I am having all kinds of issues trying to deploy sunspot to my local server. This is related to my previous question, however it would be very helpful if someone versed in Capistrano could verify the ...
0
votes
0answers
3 views
Action Mailer attachments.inline showing as normal attachment, not inline
def simple_mail(to, subject, body)
attachments.inline['Logo.png'] = File.read( Rails.root.join("public", "Logo.png"))
mail(:to => to, :subject => subject, :body => body)
end
I ...
0
votes
0answers
12 views
f.collection_select undefined method 'zip_id'
Somewhat new to rails and trying to build something to learn, but having an issue.
I have successfully created one form field that reads from a collection of categories. I generated scaffolding for ...
0
votes
1answer
14 views
Multiple Expections in Rails Rspec test
I'm trying to test a ruby controller method, and I'm expecting multiple things to change in the database.
context "With an unknown user" do
let(:unknown_phone_number) { "0000000000" }
subject ...
0
votes
2answers
18 views
Using routing (?) to make GET request in Rails so ID doesn't show
I have a link in one view myapp/locations that goes to myapp/statistics?id=1 (statistics for location with ID 1) which works fine but it doesn't look pretty. I think I've seen people do this sort of ...
1
vote
3answers
26 views
.find or where condition in active record querying
I am confused on where to use '.find' and where to use 'where'. is there a difference in the performance during the execution of the query ??
example : converted the existing queries which are using ...
0
votes
0answers
13 views
Unicorn not working in Heroku
I've deployed my Rails application to Heroku following https://devcenter.heroku.com/articles/rails3 and can open a website like http://severe-mountain-793.herokuapp.com
According to the ...
1
vote
0answers
7 views
Unexpected exception in Dalli: ArgumentError: dump format error for symbol(0x46)
I am getting an error ie:
Unexpected exception in Dalli: ArgumentError: dump format error for symbol(0x46)
This is a bug in Dalli, please enter an issue in Github if it does not already exist.
...