[Rails] Re: transfer text file to lpt1 port

2012-09-05 Thread sjm
Hi, You said, in response to Colin's question, that you wanted to send it to lpt1 port on the server. Now you're saying that it is to be sent to the lpt1 port on the client? This would not be possible via HTTP, the server cannot take control of the client. The best you could achieve (IMHO)

[Rails] Re: transfer text file to lpt1 port

2012-09-05 Thread sjm
You said, in response to Colin's question, that you wanted to send it to lpt1 port on the server. Now you're saying that it is to be sent to the lpt1 port on the client? You never said that, I misread it - lol, sorry. Steve On Wednesday, 5 September 2012 10:00:27 UTC+1, sjm wrote: Hi,

Re: [Rails] I wanna make a new rails community :)

2012-09-05 Thread Ashokkumar Yuvarajan
I agree.. Am Ashokkumar, RoR developer. I started rails programming for my past 4months. I think we both are the right pair to start learning. All is well !! On Tue, Sep 4, 2012 at 7:03 AM, Tima timaki...@gmail.com wrote: Hi everyone! I'm a newbie engineer. I started rails programming, but

[Rails] Re: transfer text file to lpt1 port

2012-09-05 Thread Matt Jones
On Tuesday, 4 September 2012 07:15:28 UTC-4, Ruby-Forum.com User wrote: Thanks, but i want send text file from server to client (lpt1 port), it's possible? This seems to come up every couple months - check out this thread from January for some discussion:

[Rails] problem with rails console

2012-09-05 Thread roelof
Hello, I have now Rails Enterprise Edition installed on Centos 6. And I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html I have this model : class Post ActiveRecord::Base attr_accessible :content, :name, :title validates :name, :presence = true

Re: [Rails] problem with rails console

2012-09-05 Thread G S RAO
It's just .full_messagesnot.full.messages :) :) :) :) :) :) On 5 September 2012 17:09, roelof rwob...@hotmail.com wrote: Hello, I have now Rails Enterprise Edition installed on Centos 6. And I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html I have

[Rails] Getting error message while executing ruby code for fetchign data from MYSQL

2012-09-05 Thread Namit j.
Hi All, I need your help on some error message that I am getting. I am working on cucumber with selenium to automate my application. Now I am supposed to connect to a database and fetch value from there. Since I am new to database connectivity stuff so please excuse me for my silly mistake if

[Rails] Re: problem with rails console

2012-09-05 Thread roelof
Thanks, stupid mistake at my site. Op woensdag 5 september 2012 13:39:48 UTC+2 schreef roelof het volgende: Hello, I have now Rails Enterprise Edition installed on Centos 6. And I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html I have this model :

[Rails] What is the best forum for a newby?

2012-09-05 Thread Derek Lin
Hi, I am a newby. What is the best forum for some very small questions? Thanks! -- 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 post to this group, send email to

[Rails] What is the best forum for small questions for newbies?

2012-09-05 Thread Derek Lin
Hi, I am a newbie to rails. What is the best forum for small questions? Thanks, Derek -- 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 post to this group, send email to

Re: [Rails] What is the best forum for small questions for newbies?

2012-09-05 Thread Walter Lee Davis
On Sep 5, 2012, at 9:41 AM, Derek Lin wrote: Hi, I am a newbie to rails. What is the best forum for small questions? We are all, to varying degrees, newbies at some aspect of this or another. Ask away, don't be shy! It's best if you follow the rules for good questions: single topic,

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-05 Thread Brian Ekmark
Thanks, Thomas. I didn't know about the additional switches on the relationships. Now that I have the relationship formed I still don't understand what I need to use to extract it from the joined tables. Here is a better idea of what I have: User Model has_many :task, :through = :task_owner

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-05 Thread Brian Ekmark
Nevermind ... I figured it out. I was stopping too short into the methods. Instead of mytasks.title I should have been using mytasks.task.title This dug down in the the linked/joined table just fine. -Brian On Monday, August 27, 2012 1:39:04 PM UTC-5, Brian Ekmark wrote: Greetings --

[Rails] Using one model's attribute in another model's method

2012-09-05 Thread sacshu
I'm slightly new at Rails, so any help would be appreciated! I have two models that have no association with each other (but they would probably be many-to-many). One is called 'Course' and contains seed data of Golf Courses. The other is called 'Player' and contains user entered information.

[Rails] Hash Issue when looping through

2012-09-05 Thread Anthony Brushwood
So I have been struggling with an issue for a while now and seem to be getting nowhere... The problem exists while I am looping through a hash, around the 3rd level deep. So my code looks a little like: request[:items][:location_item].each do |locaton_item| pp location_item[:name]

[Rails] Re: Thinking Sphinx and Ransack in the same application?

2012-09-05 Thread antonk
Use 'ransack' method for a ransack search [examplehttp://stackoverflow.com/a/10421755/820520]. This should solve all your problems. Regards, Anton вторник, 4 сентября 2012 г., 20:07:36 UTC+4 пользователь Walter Lee Davis написал: I have Ransack set up to do simple attribute-based search in

[Rails] Mysql2 with Rails3 Error

2012-09-05 Thread Kayo Lima
I'm trying to configure mysql2 with rails 3 in* windows*, but when I do rake db:create I got an error : Incorrect MySql client library version Any help? Thanks!! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Ruby on rail installation framework similar to installAnywhere or some sort of installation wizard

2012-09-05 Thread rubyiscool
Hello All, does anyone know if there is an automated way to install ruby on rails and some of my own gems in an executable or some sort of installation wizard. thanks in advance. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] ror on the premise

2012-09-05 Thread rubyiscool
Hello all, I have been using ror for a while and I really like the it. All of the past projects have been web-based applications. I an tasked to build a new product that is installed on the premise (on a customer's server) and I am thinking of using ror for it instead of java. - Has

[Rails] Re: Which Framework will improve my Ruby Skills?

2012-09-05 Thread rubyiscool
There is this website that allows you to solve problems with programming languages ( http://www.codechef.com/ ) , one suggestion is to pick a challenge and use ruby to solve it. On Sunday, September 2, 2012 8:17:54 AM UTC, ACK wrote: hi i m just curious to know will framework will improve

[Rails] Validating an association as a whole rather than per entry

2012-09-05 Thread Paul Makepeace
I have, `Transaction.has_many :splits` and Split has an amount:integer attribute. I'd like to ensure `transaction.splits = [split1, split2, ...]` the sum of split1.amount + split2.amount + ... == 0. It seems that :before_add deals with the splits one by one whereas what I'd like is to check

[Rails] Re: Database and model design for multiple user roles

2012-09-05 Thread @iamreff
Interested to know which direction you went in since I'm working on this issue now. thanks. On Sunday, March 25, 2012 4:52:10 AM UTC-4, pavlos kallis wrote: I would like to create a web application that has two types of users, producer and consumer. Both users have three fields in common :

[Rails] Associations and Math between Models

2012-09-05 Thread sacshu
I've setup two models, 1 and 2, that are associated by has_and_belongs_to_many. I'm trying to get an attribute from model_1 to use in a method in model_2. When I use the code below, I get an error saying 'undefined method model_1_id'. What am I missing? Thanks! Model_2.rb Class Model_2

Re: [Rails] Thinking Sphinx and Ransack in the same application?

2012-09-05 Thread Walter Lee Davis
On Sep 5, 2012, at 7:05 AM, antonk wrote: Use 'ransack' method for a ransack search [example]. This should solve all your problems. Nice find -- this is exactly what I needed! Walter Regards, Anton вторник, 4 сентября 2012 г., 20:07:36 UTC+4 пользователь Walter Lee Davis написал:

Re: [Rails] Associations and Math between Models

2012-09-05 Thread Hassan Schroeder
On Tue, Sep 4, 2012 at 9:53 AM, sacshu sac...@gmail.com wrote: When I use the code below, I get an error saying 'undefined method model_1_id'. What am I missing? Thanks! Class Model_2 ActiveRecord::Base ... has_and_belongs_to_many :model_1 def some_method attr_a *

Re: [Rails] Re: Which Framework will improve my Ruby Skills?

2012-09-05 Thread ANIKET KADAM
thanks On Wed, Sep 5, 2012 at 2:45 AM, rubyiscool haidar.h...@gmail.com wrote: There is this website that allows you to solve problems with programming languages ( http://www.codechef.com/ ) , one suggestion is to pick a challenge and use ruby to solve it. On Sunday, September 2, 2012

Re: [Rails] I wanna make a new rails community :)

2012-09-05 Thread Bruce Whealton
I agree also. It seems that there are also overlapping issues that go together with Rails programming. I would like to be able to be great at Ruby programming too. I picked up a book on “Scripting Intelligence” and while the author speaks of doing things in Rails, there is so much Ruby

[Rails] Image question

2012-09-05 Thread roelof
Image I have this model: Class Post ActiveRecord::Base validates_presence_of :date validates_presence_of :title validates_presence_of :text end But now I want to do the same as this page : http://www.tamarawobben.nl/dagboek/2005/09/2/ So text a image and the rest of the text.

[Rails] Re: get post methods in controller's test

2012-09-05 Thread Salvatore Pelligra
That's strange °_° In my app it fails: .F. Failures: 1) SessionsController POST to 'login' returns http success Failure/Error: post '/login' ActionController::RoutingError: No route matches

[Rails] Re: Associations and Math between Models

2012-09-05 Thread Sa S.
Well that's kind of what I need help with, I'm not sure where it needs to be defined in a many-to-many relationship. I've already created the join table that contains both ids. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Image question

2012-09-05 Thread Hassan Schroeder
On Wed, Sep 5, 2012 at 12:38 PM, roelof rwob...@hotmail.com wrote: Must I made for every post a seperate layout which will contain the image of the page if there is a image on that page or is there a better way. Think about it: do you need a separate layout for each page because it has

Re: [Rails] Re: Associations and Math between Models

2012-09-05 Thread Hassan Schroeder
On Wed, Sep 5, 2012 at 1:00 PM, Sa S. li...@ruby-forum.com wrote: Well that's kind of what I need help with, I'm not sure where it needs to be defined in a many-to-many relationship. I've already created the join table that contains both ids. The point is that your example makes no sense;

[Rails] Re: Re: Associations and Math between Models

2012-09-05 Thread Sa S.
Hassan Schroeder wrote in post #1074840: On Wed, Sep 5, 2012 at 1:00 PM, Sa S. li...@ruby-forum.com wrote: Well that's kind of what I need help with, I'm not sure where it needs to be defined in a many-to-many relationship. I've already created the join table that contains both ids. The

Re: [Rails] Re: Re: Associations and Math between Models

2012-09-05 Thread Hassan Schroeder
On Wed, Sep 5, 2012 at 1:14 PM, Sa S. li...@ruby-forum.com wrote: Sorry, I should clarify. In my Model_2 view, I'm trying to simply have a table that iterates through all the model_1's and calculates that method above using the model_1's attribute that I need But you're not showing us a view,

Re: [Rails] Image question

2012-09-05 Thread roelof
Op woensdag 5 september 2012 22:03:28 UTC+2 schreef Hassan Schroeder het volgende: On Wed, Sep 5, 2012 at 12:38 PM, roelof rwo...@hotmail.com javascript: wrote: Must I made for every post a seperate layout which will contain the image of the page if there is a image on that page or

Re: [Rails] Image question

2012-09-05 Thread Hassan Schroeder
On Wed, Sep 5, 2012 at 1:45 PM, roelof rwob...@hotmail.com wrote: But as far as I know I cannot insert a image at a particular place. What exactly do you mean by at a particular place? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder

Re: [Rails] Using one model's attribute in another model's method

2012-09-05 Thread Jeffrey L. Taylor
Quoting sacshu sac...@gmail.com: I'm slightly new at Rails, so any help would be appreciated! I have two models that have no association with each other (but they would probably be many-to-many). One is called 'Course' and contains seed data of Golf Courses. The other is called 'Player'

[Rails] Re: get post methods in controller's test

2012-09-05 Thread Frederick Cheung
On Tuesday, September 4, 2012 12:56:05 AM UTC+1, Ruby-Forum.com User wrote: But this will load the login action and not the login_create! After a lot of searching and trying, I've wrote: post :login_create ... And it works as expected. However, after that I've tried: get

[Rails] Re: get post methods in controller's test

2012-09-05 Thread Salvatore Pelligra
Frederick Cheung wrote in post #1074851: On Tuesday, September 4, 2012 12:56:05 AM UTC+1, Ruby-Forum.com User wrote: Controller specs bypass your routes entirely (as part as action invocation goes, they're still used if you try to generate a url inside the action). If you do get

Re: [Rails] What is the best forum for a newby?

2012-09-05 Thread Dave Aronson
On Wed, Sep 5, 2012 at 9:25 AM, Derek Lin li...@ruby-forum.com wrote: I am a newby. What is the best forum for some very small questions? As Madge used to say, You're soaking in it! ;-) Ask away -Dave -- Dave Aronson, Available Secret-Cleared Ruby/Rails Freelancer (VA/DC/Remote); see

[Rails] modules

2012-09-05 Thread John Merlino
module ActionView module Helpers module FormHelper def form_for(foo, bar) instantiate_builder(foo, bar) end def instantiate_builder(foo,bar) self end end end end self in instantiate_builder refers to ActionView::Helpers::FormHelper. self it

[Rails] Re: get post methods in controller's test

2012-09-05 Thread 7stud --
Sorry, my tests were inside an integration('request') test: /spec/requests/dog_pages_spec.rb In my rails tutorial book, it says that inside a controller test, you can't use urls at all, e.g get '/about' get '/' ...you can only do: get 'actionA' get 'actionB' -- Posted via

[Rails] :index option to form_for

2012-09-05 Thread John Merlino
I was looking in the Rails source code, and during the call to form_for, it creates a new instance of FormBuilder and during the initialization, it checks if the options hash contains an index: @default_options = @options ? @options.slice(:index, :namespace) : {} When will the options hash

Re: [Rails] Image question

2012-09-05 Thread roelof
Op woensdag 5 september 2012 22:55:03 UTC+2 schreef Hassan Schroeder het volgende: On Wed, Sep 5, 2012 at 1:45 PM, roelof rwo...@hotmail.com javascript: wrote: But as far as I know I cannot insert a image at a particular place. What exactly do you mean by at a particular place? --

[Rails] Regexp pre_match

2012-09-05 Thread John Merlino
I looked in ruby documentation http://www.ruby-doc.org/core-1.9.3/Regexp.html I cannot find a method called pre_match but its used in Rails... @template.instance_variable_get(@#{Regexp.last_match.pre_match}) -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-05 Thread uma mahesh varma Seeram
Hi, What will be the query that runs for above association ? Thank You, Uma Mahesh. On Wednesday, September 5, 2012 9:57:37 PM UTC+5:30, Brian Ekmark wrote: Nevermind ... I figured it out. I was stopping too short into the methods. Instead of mytasks.title I should have been using