[Rails] Re: How to write test cases for MSSQL backed Rails app

2015-09-10 Thread KlausG
Hi, you may use "rake db:schema:dump" to get the current schema out of your SQL Server DB. If there are no migrations Rails will use the schema.rb file to setup your test database. BUT: you can not use the Sql Server schema dump for a sqlite db, as it may contain special Sql Server datatypes (v

Re: [Rails] Connecting SQL Server and Rails 4.2.1

2015-05-07 Thread KlausG
> Can anyone help me regarding the database.yml file on connecting to sql server. > 1) It looks like you have not installed a connection adapter for SQL Server. Rails does not automatically come with adapters for all databases. I don’t > use it myself, but googling for "ruby on rails microsoft

[Rails] Re: rails 4 utilizing maximum cpu while processing data into .xml format

2015-03-12 Thread KlausG
> Hi, > > I have upgrade to the latest rails and activescaffolding, I am processing > the data to .xml format. when i hit the url like server/tablename.xml , it > is utilizing 100% CPU and after the request it is normal. Does this is > acceptable ? is this an issue. > > Thanks, > Kranthi > 1

[Rails] Rails views "new,edit,show" with same layout?

2015-02-09 Thread KlausG
So we have such wonderfull gems like SimpleForm and Formtastic which help us to build our "new" and "edit" view with great support for Bootstrap and Foundation. But what about the "show" view? Is it still hand crafted or is there any way to generate a "view only form" with an "Edit" button inste

[Rails] Re: What makes YOU a happy Ruby on Rails developer?

2014-10-03 Thread KlausG
Looking at your survey: what means "1" and "5" ?? "1" = strongly agree o r "5" strongly agree ? Am Freitag, 3. Oktober 2014 10:15:39 UTC+2 schrieb Pablo Alonso García: > > Hello! > > I'm running a quick survey to learn about what makes Ruby on Rails > developers like YOU happy >

[Rails] Re: Are Rail's database tools really helpful?

2012-11-29 Thread KlausG
Hi, Am Mittwoch, 21. November 2012 11:56:58 UTC+1 schrieb Ruby-Forum.com User: > > > In a real world application, you don't just play with one table at a > time. You have to write long SQL requests, with several tables No in my application I am not working with tables at all, I am working with

Re: [Rails] Re: Time without date

2012-10-26 Thread KlausG
Am Dienstag, 31. August 2010 23:12:51 UTC+2 schrieb Philip: > > Just for the sake of argument... how about the time it takes runners to > finish a marathon? Sure you could use seconds as an integer field, but > time without date make sense... > > I agree that "4pm" is kind of pointless, but "16

[Rails] Re: How to send a ASCII escape sequence to a Dot Matrix Printer

2012-01-10 Thread KlausG
Hi Christian, could you please be so kind and share your knowledge HOW you did it? Best regards Klaus On 10 Jan., 01:50, Christian Bautista wrote: > Thanks for all your responds.. > > We finally did it.. we used jzebra > > > On Mon, Jan 9, 2012 at 10:41 PM, Greg Akins wrote: > > On Mon, Jan 9

[Rails] Re: Ruby adoption statistics

2011-10-09 Thread KlausG
> However, my co-worker mentioned that he thinks if we are switching, we should > switch to > Java because Ruby is a dying language. Eeh, just show your co-worker the following chart: http://www.tiobe.com/index.php/paperinfo/tpci/Java.html ( Uuh and DON'T show him the Ruby Chart ;-((( ) -- Y

[Rails] Re: Creating a Simple Orders System

2011-07-26 Thread KlausG
I whonder why a product should have many orders? It belongs to orders.. > > class Customer < ActiveRecord::Base > >    has_many :orders > > end > > class Order < ActiveRecord::Base > >    belongs_to :customer > >    has_many :products > > end > > class Product < ActiveRecord::Base > >    belongs_t

[Rails] Re: RVM installation

2011-05-12 Thread KlausG
On 11 Mai, 17:58, Cássio wrote: > Hello, after upgrading to ubuntu 11.04 im having this problem with > rvm. Im following this > tutorial:http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#top > > Git is installed OK, when I follow the instructions on RVM website > aparently its OK too, b

[Rails] Re: Hardware question: dual or quad core?

2010-11-26 Thread KlausG
On 26 Nov., 16:49, Heinz Strunk wrote: > Well, at the moment I'm on a Core2Duo and 3GB of RAM. CPU usage is ~90% > and RAM alltogether 2.0 - 2.5 GB used. > > I'm planning to go on 6 or even 8 GB the only question remaining is > whether it's gonna be a  i5 or a i7. > If you have only one script r

[Rails] Re: Problems when connecting to Sql server 2008 odbc no such file to load error

2010-10-25 Thread KlausG
> gem 'activerecord-sqlserver-adapter' > > LoadError (no such file to load -- odbc): > When using the odbc connection mode for the adapter, you need the gem ruby-odbc to be installed. You will find more information to this gem on http://www.ch-werner.de/rubyodbc/ When you are running on a Linux

[Rails] Re: problem with german ü,ö,ä,.

2010-10-21 Thread KlausG
Add the magic comment: # encoding: UTF-8 to the top of your source file -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email t

[Rails] Re: problem with german ü,ö,ä,.

2010-10-20 Thread KlausG
What error messages are you getting and where ? which version of Ruby and Rails are you running ? def show is in a controller, I assume ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t..

[Rails] Re: How old are you?

2010-10-11 Thread KlausG
> > yeah, I got a paper route in 4th grade to buy a Vic 20 with 8k and learn > Basic. Which is about the extent of my formal training :) > So you startet with the successor of my first computer : a Commodore PET 2001 ... -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Using ActiveRecord Find with associations

2010-09-04 Thread KlausG
> > Probably not explaining this clearly enough (I blame the distillery > > masters at Lagavulin), but: > > Wish I was there! Which of their Beer is available in the US? > Lol, Lagavulin is a famous WHISKY destillery > > > By the way, my_order.find_by_line_item fails with "no such method", not > j

[Rails] Re: Time without date

2010-08-31 Thread KlausG
> > In what time zone? > To produce a specific part it takes our machine 1 hour and 15 minutes => 01:15:00 And I would like to store this value in the database. Btw it wouldn't matter if this part will be produced on Mondays or Tuesdays or in which time zone the factory is.. -- You received this

[Rails] Re: How to run unit tests w/o first blowing away test db?

2010-07-14 Thread KlausG
insert the following code to your Rakefile # Monkey patch Rake : Rake::TaskManager.class_eval do def remove_task(task_name) @tasks.delete(task_name.to_s) end end before the line require 'tasks/rails' The create a new file test.rake under Libs/tasks : Rake.application.remove_task 'db:te

[Rails] Re: How to run unit tests w/o first blowing away

2010-07-14 Thread KlausG
> Who cares?  Just generate a TimeDimension record that has the properties > you need for the particular test.  If that means saying Easter fell in > December, that's perfectly OK.  So your test is running fine when Easter fells in December... and then you are going in production with your applica