[Rails] Re: ActiveRecord/Supporty-4.1, undefined method `assertions'

2014-07-30 Thread Matt Jones
On Tuesday, 29 July 2014 15:53:58 UTC-4, byrnejb wrote: If there is a list devoted to ActiveRecord problems then I would appreciate a redirect. In the absence of same I need some assistance with part of RoRs stack, namely ActiveRecord and the testing thereof. I have a cli project which

Re: [Rails] Variable + string to specify variable

2014-07-30 Thread Eric Saupe
To expand on what Scott is saying here is some code that gives an example of what he is referring to. id = 100 x = rand(1..3) arrays = [Array.new, Array.new, Array.new] selected_array = arrays[x] selected_array.push(id) On Tuesday, July 29, 2014 8:05:16 PM UTC-6, Scott Ribe wrote: On Jul

Re: [Rails] Re: ActiveRecord/Supporty-4.1, undefined method `assertions'

2014-07-30 Thread 'James B. Byrne' via Ruby on Rails: Talk
On Wed, July 30, 2014 10:42, Matt Jones wrote: The underlying issue is mentioned here in Minitest: https://github.com/seattlerb/minitest/blob/master/lib/minitest/assertions.rb#L8-L12 Whatever is including the `assert` functions needs to also define the `assertions` accessor. Hard to

[Rails] connecting Rails app to SQL Server

2014-07-30 Thread Lance L.
Hi, We are trying to connect an app that was using postgre to use MS SQL Server on a Centos 6 oracle virtualbox vm. We have installed the activerecord-sqlserver-adapter and tiny_tds gems packages. The list of gems installed for this app are shown below. actionmailer (4.0.1) actionpack

[Rails] Re: connecting Rails app to SQL Server

2014-07-30 Thread Lance L.
BTW, I get the same error even if I am using Ruby 2.1.2 -- 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 an email to

Re: [Rails] Re: ActiveRecord/Supporty-4.1, undefined method `assertions'

2014-07-30 Thread 'James B. Byrne' via Ruby on Rails: Talk
For now we seem to worked around this problem by specifying the following code in a cucumber support file: require 'minitest/autorun' require 'test/unit/assertions' World( Test::Unit::Assertions ) require 'minitest' module Minitest attr_accessor :assertions end At least, things are

[Rails] Syntax question.

2014-07-30 Thread Dan Boyle
Hello, I am new to Rails and work my way through the guides at R -- 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 an email to

[Rails] Ruby on Rails syntax

2014-07-30 Thread Dan Boyle
Hello, I am very new to Ruby on Rails. I am working my way through the guides at rubyonrails.org. It isn't going very quickly but I am determined to make it work. Here is a very basic question but I just can't figure it out by looking at the examples. It is regarding embedded ruby.

Re: [Rails] Ruby on Rails syntax

2014-07-30 Thread Daniel Evans
%= % appends to the output and % % doesn't. % % is for control statements such as `if`, whereas things that generate HTML or strings to be included in the document should use %= %. For example: % if should_apologize? % %= I'm sorry #{name}. % % else % %= I'm not sorry. You deserved it,

[Rails] Re: Ruby on Rails syntax

2014-07-30 Thread Dan Boyle
Thanks very much. On Wednesday, July 30, 2014 5:52:41 PM UTC-4, Dan Boyle wrote: Hello, I am very new to Ruby on Rails. I am working my way through the guides at rubyonrails.org. It isn't going very quickly but I am determined to make it work. Here is a very basic question but