[Rails] Re: Rails unit test assert_template failure

2015-01-21 Thread Bala Paranj
The problem is don't know the basics of testing. Learn the basics first, here is a free coupon to learn TDD in Ruby : https://www.udemy.com/learn-test-driven-development-in-ruby/?couponCode=railsfree On Thursday, December 25, 2014 at 10:45:57 AM UTC-8, Bazley wrote: > > I have the following test

[Rails] Re: new to ruby and trying to minitest

2015-01-21 Thread Bala Paranj
If you don't know what you are doing, then learn the basics. Here is a free coupon for TDD in Ruby course for beginners: https://www.udemy.com/learn-test-driven-development-in-ruby/?couponCode=railsfree On Wednesday, January 21, 2015 at 4:21:06 PM UTC-8, Ruby-Forum.com User wrote: > > i recrea

Re: [Rails] Re: OSV ON ROR

2015-01-21 Thread Rajandeep Singh
> Which just goes to show how important it is to be clear when you are > asking asking a question. I assumed you meant OSv http://osv.io/ > NO, sorry for that i cannot explain this. > > However, now the question is even less clear, what do you mean by > 'cannot run OSV on local hos

Re: [Rails] Re: OSV ON ROR

2015-01-21 Thread Rajandeep Singh
On Wednesday, January 21, 2015 at 4:33:38 PM UTC+5:30, Vivek Sampara wrote: > > Rajandeep, > > You need to be more specific about what problems you're facing. And is the > problem related to rails or OpenStreetView. > I faced many problems related to this. the problem is related to rails

[Rails] Re: mystery encoding problem sending email

2015-01-21 Thread Jim
On Tuesday, January 20, 2015 at 10:07:01 AM UTC-5, Scott Ribe wrote: > > How in the !@#$% can this function: > > def sendMsg(msg, today, cancel) > > email = < Date: #{Time.now} > From: f...@bar.com > Subject: Pediatric Cardiology Apt#{cancel ? ' Cancellation' : ''} > Mime-Version: 1.0 > C

[Rails] new to ruby and trying to minitest

2015-01-21 Thread Justin Cheeze
i recreated a test directory, and placed all the necessary files in the directory. replaced gem 'minitest' with gem 'minitest-rails', '~> 0.1.0.alpha' I replaced coz I was getting in error in the terminal which reads Could not find generator mini_test:install therefore,

[Rails] Re: `rails s -e production` loads development database not production

2015-01-21 Thread Jiajia Wang
Jiajia Wang wrote in post #1166961: > I'm running into a very weird rails server problem. > > I started a rails application in production mode with `rails s -e > produciton` and got some db errors when visiting the site. > > Then I realised that it loaded development database not production > datab

[Rails] Getting an exception with Refile Gem when user avatar image isn't available

2015-01-21 Thread David Williams
module MessagesHelper def recipients_options s = '' users = User.all + BizUser.all; users.each do |user| s << "#{user.username}" end s.html_safe end end How would I pass if nil to the attachment_url for user :profile_avatar? when the image isn't available. -- Posted vi

[Rails] Re: `rails s -e production` loads development database not production

2015-01-21 Thread Jiajia Wang
Rob Biedenharn wrote in post #1167042: > On 2015-Jan-21, at 16:13 , Mads Ohm Larsen wrote: > >> Jiajia Wang wrote in post #1166961: >>> I'm running into a very weird rails server problem. >>> >>> I started a rails application in production mode with `rails s -e >>> produciton` and got some db erro

[Rails] Re: `rails s -e production` loads development database not production

2015-01-21 Thread Jiajia Wang
Mads Ohm Larsen wrote in post #1167041: > Jiajia Wang wrote in post #1166961: >> I'm running into a very weird rails server problem. >> >> I started a rails application in production mode with `rails s -e >> produciton` and got some db errors when visiting the site. > > Have you tried with > > $ RA

Re: [Rails] `rails s -e production` loads development database not production

2015-01-21 Thread Rob Biedenharn
On 2015-Jan-21, at 16:13 , Mads Ohm Larsen wrote: > Jiajia Wang wrote in post #1166961: >> I'm running into a very weird rails server problem. >> >> I started a rails application in production mode with `rails s -e >> produciton` and got some db errors when visiting the site. Did you cut-n-pas

[Rails] Re: `rails s -e production` loads development database not production

2015-01-21 Thread Mads Ohm Larsen
Jiajia Wang wrote in post #1166961: > I'm running into a very weird rails server problem. > > I started a rails application in production mode with `rails s -e > produciton` and got some db errors when visiting the site. Have you tried with $ RAILS_ENV=production bundle exec rails s instead? Doe

Re: [Rails] Ruby on Rails Applying Model to Two Other Models

2015-01-21 Thread Walter Lee Davis
On Jan 20, 2015, at 5:48 PM, Jacob Grishey wrote: > Hi, I know this is probably a basic question but I am relatively new to Ruby > on Rails. > > I have a website in which I have three models: courses, students, and works. > The website is supposed to be a grade keeper. A course has many works

Re: [Rails] ruby 1.8.7-p302.exe file i am not getting

2015-01-21 Thread Ganesh Ranganathan
On Wed, Jan 21, 2015 at 3:57 PM, Lokesh Baxi wrote: > please i want to install the version ruby1.8.7-p302.exe please help me > ​I would suggest doing ruby development on a linux VM instead of windows. Your can install any ruby version using RVM. Thanks, Ganesh​ -- You received this message b

Re: [Rails] MySQL gem installation with windows 7 64 bits

2015-01-21 Thread Thota praneeth
http://stackoverflow.com/questions/19014117/ruby-mysql2-gem-installation-on-windows-7 On Wed, Jan 21, 2015 at 12:54 PM, wrote: > ruby 2.0.0 + windows 7 + mysql 5 > > bundle install > > GemFile > > gem "mysql2", "~> 0.3.17" > while installing bundle in rails project i am getting this erro

Re: [Rails] Re: OSV ON ROR

2015-01-21 Thread Colin Law
On 21 January 2015 at 10:51, Rajandeep Singh wrote: > > > On Wednesday, January 21, 2015 at 3:13:48 PM UTC+5:30, Frederick Cheung > wrote: >> >> >> >> On Wednesday, January 21, 2015 at 9:33:31 AM UTC, Rajandeep Singh wrote: >>> >>> Hello everyone, I do the work on OSV on ROR on ubuntu 12.04. 12.04

Re: [Rails] ruby 1.8.7-p302.exe file i am not getting

2015-01-21 Thread Colin Law
On 21 January 2015 at 10:27, Lokesh Baxi wrote: > please i want to install the version ruby1.8.7-p302.exe please help me > out I suggest using rvm. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group an

Re: [Rails] Re: OSV ON ROR

2015-01-21 Thread Vivek Sampara
Rajandeep, You need to be more specific about what problems you're facing. And is the problem related to rails or OpenStreetView. On Wed, Jan 21, 2015 at 4:21 PM, Rajandeep Singh wrote: > > > On Wednesday, January 21, 2015 at 3:13:48 PM UTC+5:30, Frederick Cheung > wrote: >> >> >> >> On Wednesd

[Rails] Re: OSV ON ROR

2015-01-21 Thread Rajandeep Singh
On Wednesday, January 21, 2015 at 3:13:48 PM UTC+5:30, Frederick Cheung wrote: > > > > On Wednesday, January 21, 2015 at 9:33:31 AM UTC, Rajandeep Singh wrote: >> >> Hello everyone, I do the work on OSV on ROR on ubuntu 12.04. 12.04 is >> compatable for this or not. I faced many problems relate

[Rails] ruby 1.8.7-p302.exe file i am not getting

2015-01-21 Thread Lokesh Baxi
please i want to install the version ruby1.8.7-p302.exe please help me out -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [Rails] What's happening to Rails engines?

2015-01-21 Thread Vivek Sampara
Hi, I dont mean to be rude but i have no idea what you're talking about Spring ? Zues ? Core ? :D On Wed, Jan 21, 2015 at 3:34 PM, David Morales wrote: > Thanks Vivek, you are totally right. So much time since I added the last > gem to my project :) > > Spring issues continue to be annoying.

Re: [Rails] What's happening to Rails engines?

2015-01-21 Thread David Morales
Thanks Vivek, you are totally right. So much time since I added the last gem to my project :) Spring issues continue to be annoying. It forced my to use Zeus, but since Spring is in the core it should be fully supported, don't you think? El miércoles, 21 de enero de 2015, 10:17:25 (UTC+1), Viv

Re: [Rails] Ruby on Rails Applying Model to Two Other Models

2015-01-21 Thread Colin Law
On 20 January 2015 at 22:48, Jacob Grishey wrote: > Hi, I know this is probably a basic question but I am relatively new to Ruby > on Rails. > > I have a website in which I have three models: courses, students, and works. > The website is supposed to be a grade keeper. A course has many works, lik

[Rails] demand for RoR developers in southern Ontario?

2015-01-21 Thread Mickey Kocic
I've heard RoR is super hot in Vancouver, but am wondering whether there's healthy demand in Toronto and Ottawa. My concern is that I'm still cutting my teeth in Ruby and don't want to be late to the party when the market matures the way it did for PhP developers some years ago. -- Posted via htt

[Rails] Re: OSV ON ROR

2015-01-21 Thread Frederick Cheung
On Wednesday, January 21, 2015 at 9:33:31 AM UTC, Rajandeep Singh wrote: > > Hello everyone, I do the work on OSV on ROR on ubuntu 12.04. 12.04 is > compatable for this or not. I faced many problems related to this work i > cannot run OSV on local host. > please help me. > thankx in advance. >

[Rails] Ruby on Rails Applying Model to Two Other Models

2015-01-21 Thread Jacob Grishey
Hi, I know this is probably a basic question but I am relatively new to Ruby on Rails. I have a website in which I have three models: courses, students, and works. The website is supposed to be a grade keeper. A course has many works, like a test. You can add a work to a course, but I want that

[Rails] MySQL gem installation with windows 7 64 bits

2015-01-21 Thread vinaykumar . n
ruby 2.0.0 + windows 7 + mysql 5 bundle install GemFile gem "mysql2", "~> 0.3.17" while installing bundle in rails project i am getting this error. i am having windows system (64 bits OS). How can i resolve this error? Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem na

[Rails] OSV ON ROR

2015-01-21 Thread Rajandeep Singh
Hello everyone, I do the work on OSV on ROR on ubuntu 12.04. 12.04 is compatable for this or not. I faced many problems related to this work i cannot run OSV on local host. please help me. thankx in advance. -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] What's happening to Rails engines?

2015-01-21 Thread Vivek Sampara
Apart from adding them on gemspec dependency , you need to also require it explicitly inside the engine.rb or lib/your_engine_name.rb on top Eg: # lib/your_engine_name.rb require 'jquery-ui' module YourEngineName end OR module YourEngineName class Engine < ::Rails::Engine isolate_namespac

[Rails] What's happening to Rails engines?

2015-01-21 Thread David Morales
Since I began to develop a big application as a Rails engine I have been noticing some annoying things, especially with gems. First is Spring. Since it’s a core gem I would expect it to be well supported for engines, but it’s not. I opened two issues, one about not working fast enough

Re: [Rails] `rails s -e production` loads development database not production

2015-01-21 Thread Colin Law
On 21 January 2015 at 04:55, Jiajia Wang wrote: > I'm running into a very weird rails server problem. > > I started a rails application in production mode with `rails s -e > produciton` and got some db errors when visiting the site. > > Then I realised that it loaded development database not produ