0
votes
1answer
14 views

Testing the controller of a comment that belongs to a post in Rails

I'm very new to Rails and my knowledge of Ruby is pretty rusty as well. Anyway, I'm trying to write my first Rails app the right way with good test coverage. I've been trying to follow the getting ...
0
votes
0answers
21 views

How Can I Resolve This Bug in the Forem Gem?

On deployment to Heroku, I run into this issue: Running: rake assets:precompile rake aborted! undefined method `path' for nil:NilClass (in ...
0
votes
1answer
32 views

Paypal Rails Payment

Hello you Ruby on Rails developer, i really need your help on this one.. I hire someone that promess he will install Paypal Payment, but he didnt. And i will not find him. Anyway.. I have used Ruby ...
0
votes
1answer
20 views

Rails: Difference between timezones in hours

I'd like to be able to say user1 is 4 hours ahead of user2, calculated based on the time zones the users specify in their account. Using the following code: time1 = ...
0
votes
2answers
29 views

Rails validation for web address

On my website, users have an option to fill in their website. To keep it simple, I would like to let them to fill in their URL address like website.com or www.website.com. Is there any trick or helper ...
0
votes
1answer
67 views

syntax error, unexpected tIDENTIFIER, expecting ';' or '\n'

I just copied and pasted code from tutorial in my file models/post.rb class Post < ActiveRecord::Base attr_accessible :content, :name, :title validates :name, :presence => true ...
0
votes
0answers
7 views

how to set jcode library for rubymine debugger

I'm trying to debug arabic text in rubymine. A quick search reveals that I need to set $KCODE env variable to 'U' and require the jcode library.. that works fine for me on irb, but I can't figure ...
3
votes
0answers
35 views

point gem branch path in gemfile

How to point gem branch path in gemfile. That what i am doning. gem 'rails', path: '/home/ubuntu/workspace/Fork/rails', :branch => 'any_of' but when i am doing bundle update, it's not show ...
0
votes
1answer
29 views

Looking for a good bare bones rails app

I'm a rails and programming newbie. I'm looking for a bare bones rails app to help bootstrap my first project. I really only have three requirements that I think I'd like at minimum in this bare bones ...
1
vote
1answer
23 views

RoR: Nested Resources with Polymorphic Association (comments system)

I'm following Ryanb's polymorphic association video to implement a comment system. However, I'm using nested resources, and would like some help I mimiced most of the stuff in the video but instead ...
1
vote
1answer
32 views

RecordNotFound Can't find Event without ID

I am having a lot of trouble trying to pass an id from a model into a different controller. I've read similar posts and tried different solutions, but can't seem to pass the Event id into the ...
0
votes
1answer
25 views

Rails: How to make a form post to another controller action

I know you are usually supposed to use the linking between new/create and edit/update in rails, but I have a case where I need something else. Is there anyway I can achieve this same connection? I ...
0
votes
1answer
15 views

Rails: get all fields from multiple models by join

Here is three models: class Swimming::Classschedule < ActiveRecord::Base belongs_to :swimming_classtimes ,:class_name=>'Swimming::Classtime',:foreign_key => "classtime_id" ...
1
vote
1answer
21 views

Nested attributes will not save

I have searched stackoverflow thoroughly and tried every result that has come up but I am still stuck. Here is the problem. I have an app that allows me to upload music files. Once the file is ...
0
votes
1answer
28 views

Error when upgrading to Ruby2.0

Basically, when trying to install Ruby2.0 following these instructions: http://architects.dzone.com/articles/upgrading-ruby-20-mountain I've hit a brick wall. On this step specifically: "rvm install ...

1 2 3 4 5 2128
15 30 50 per page