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
3 views
Can Capistrano notify me if Unicorn fails to start new processes
My Unicorn story: I deploy, the deployment fails (stacks or something else), the response is deployment complete, I have no idea the code served is the correct code unless I look at the logs. Even if ...
0
votes
0answers
12 views
best technology to build a personal website for a mobile developer
I do freelance iOS development. I am looking to build a website about me and my company with links to my github , linkedin, twitter, and itunes linkes to app I've already done and deployed in the app ...
0
votes
0answers
32 views
Sum returning null
I am having a problem with a Ruby SQL look up function: it always returns a null.
Here is the terminal output:
SELECT COUNT("point_store_items"."point_cost")
FROM "point_store_items"
INNER JOIN ...
0
votes
0answers
8 views
Devise, Rails, ActionMailer configuration problems?
I have a rails app, which is using devise to send emails.
The console says the mail is sent, for example.
Sent mail to [email protected] (63ms)
Date: Fri, 24 May 2013 18:57:13 -0700
From: ...
0
votes
2answers
8 views
Rails: Only see user's own information in admin
I am creating an admin-panel for a website where my 15 user/companies can login, alter their information, add products etc. They are not admins.
I have a User-table with attributes such as (slightly ...
0
votes
1answer
9 views
How to calculate average in rails app view through has_many?
I am trying to calculate the average rating in the view of my rails app through a has_many relationship.
Models:
class Review < ActiveRecord::Base
belongs_to :product
attr_accessible :rating, ...
0
votes
2answers
12 views
Rails - Securely updating user information
In many books and tutorials, I see people implementing the update method in users controller as either find the user data by params[:id] or session[:id]. However, I feel it possible to simply modify ...
0
votes
3answers
22 views
Can't deploy to heroku [heroku log included]
I'm having trouble deploying to Heroku, I've installed postgresql but I don't think I've configured it properly. This may or may not be the problem, but I have a hunch it has something to do with it. ...
1
vote
1answer
8 views
Getting a Twilio 404 Error Rails Receiving SMS
I'm trying to create an app that accepts an SMS message through Twilio, and then creates a check-in/out transaction that is tied to both employee models and item models. A simple SMS-based item ...
2
votes
1answer
11 views
Rails: before_destroy not updating parent
In my rails app, I have a Donation model, which has an attribute called status (an integer) and a child model called Delivery. A donation has_one delivery.
In the delivery model, I have callbacks
...
1
vote
0answers
9 views
Saving Tweets For Current User / Authorized User into Database
I'm working on a small project and I'm a little stuck. I've follow a few tutorials online to get things moving and here is what I came up with. Everything works when it comes to authenticating with ...
1
vote
1answer
15 views
Rails - how to setup create action to make multiple associations?
I think this is a pretty simple question, but I have an app that has User, Product, and Review models.
When a user creates a new review for a product, I currently have this in my create action for ...
1
vote
1answer
16 views
Ruby on Rails - Only showing 500.html page when deployed?
I recently deployed this to my a heroku server for a rails project I'm working on. It worked 100% fine in the localhost:3000, by when I put it up on the server the whole thing is broken and won't load ...
0
votes
0answers
12 views
directory for rails custom validations
Is there a way to declare a custom validation that can be used in multiple models?
I've read the documentation here. But in both examples the validation is declared within the model using it.
0
votes
0answers
6 views
Redirect Rails routes, in nested routes
How does one use routes, to match the oldapi, to the newapi, without using a controller redirect_to?
I'm not familiar with doing this is a nested way.
namespace :tumblr do
namespace :api do
...