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
5 views
Ruby on Rails, R, rinruby strange error
I am using foreman to start delayed jobs in ruby on rails.
web: bundle exec rails s
worker: bundle exec rake jobs:work
I run delay job in order to start an r-script in ruby on rails.
def ...
0
votes
0answers
7 views
NameError in Discussions#index
Im trying to write an ruby app that lets you post discussions and comment on posts. The issue is that I cant get the comments- here called microposts, to show up below the discussions. Right now, im ...
0
votes
0answers
7 views
Self referenced has_many and deleting join records when any side of relation is destroyed
I have Board model. Each Board can be Source for other Board. This relationship is saved in Feed table.
class Board < ActiveRecord::Base
belongs_to :user
has_many :links, dependent: :destroy
...
0
votes
1answer
10 views
using rspec to test a controller in a gem
Does anyone know how to test a controller of gem in the app using the gem with rspec? I have tried http://codingdaily.wordpress.com/2011/01/14/test-a-gem-with-the-rails-3-stack/ and ...
0
votes
0answers
11 views
I do not understand how to use ranked-model
I'm using the gem ranked model : https://github.com/mixonic/ranked-model
I want to use it to allow my users to order articles in a back office.
From what i understand from the gem the stored value ...
0
votes
1answer
12 views
rails 3 mass assignment error, simple yet unresolvable
I have been trying to figure out why I keep receiving mass-assignment errors when my code seems to be correct. Am I using the wrong syntax? I would really appreciate any beta, I have been trying to ...
0
votes
0answers
13 views
Action Destroy redirect to Show Action in Rails
Well i make a buttom to delete:
<%= link_to 'delete',{ :controller => 'admin/brands',:action => 'destroy',:id => brand.id } %>
and
<%= link_to 'delete',brand,:method => ...
0
votes
0answers
7 views
Action Controller: Exception caught - issue on localhost:3000
I loaded up the rails server on localhost:3000 and I got this error. I tried reading over the errors, but have no idea how to understand what went wrong..
This is the error:
wrong number of ...
0
votes
1answer
7 views
Heroku run rake db:migrate command error
I created rails app follow this guid https://devcenter.heroku.com/articles/rails4-getting-started. But when I run Heroku run rake db:migrate command return error : Error: Permission denied - ...
0
votes
0answers
8 views
Parsing RSS in a Ruby on Rails project shows the html as inline html
Im calling my feed with <%= blog_feed %> inside the view and have a little snippet in my helper.
require 'rss/1.0'
require 'rss/2.0'
require 'open-uri'
def blog_feed
source = ...
0
votes
1answer
6 views
jruby on rails retrive attributes in hash
I've successfully connect my model with a remote netezza database, were I can retrive data from the database in "rails c":
e.g
> Cars.first
> #<Cars ID:10, MODEL:"FORD xxxxxxx">
...
0
votes
0answers
6 views
Can't install libv8 3.11.8.17 in Rails on Windows
Can't install libv8 3.11.8.17 gem. I already looked around and found out that it doesn't support Windows. Though I'm still looking for a workaround?
Installing libv8 (3.11.8.17)
...
-5
votes
0answers
16 views
How to calculate the amount of time taken to upload the video in jQuery
I need to calculate the time taken to upload the video using jQuery, Ruby on Rails & am using youtube uploader API.Thanks for any help or advice.
1
vote
1answer
7 views
What is the best way to run a staging site on my production server?
I'm running a small Rails project using a production server from Linode. I would love to test some features in staging but I can't justify purchasing another server from Linode to perfectly mimic my ...
0
votes
1answer
25 views
Actions on an instance object passed to the view
I have an obj @files which sometimes contain one set of data(one file) and sometimes it contains many files.
I have a create.js.erb and this is what I do at the moment.
<% if @files.new_record? ...