Re: [Rails] Help getting started: Newbie: Windows and Rails

2012-09-04 Thread Colin Law
On 4 September 2012 01:14, Bruce Whealton br...@whealton.info wrote: Hello, Thanks Walter for your suggestions and information. I definitely follow advice. Here's some surprising news. I actually got everything working right inside Windows while still trying to get things to work in

[Rails] Re: How to connect gmap with rails.

2012-09-04 Thread uma mahesh varma Seeram
I hope you need to include the required javascript files in the layout. On Monday, September 3, 2012 10:02:07 PM UTC+5:30, Ruby-Forum.com User wrote: I 'm getting like this while running server.. Attachments: http://www.ruby-forum.com/attachment/7712/Screenshot.jpg -- Posted via

Re: [Rails] Basic Paypal

2012-09-04 Thread sameena Khan
Thanks for your response On Sat, Sep 1, 2012 at 11:17 AM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Putting aside the fact that you didn't give enough information about to diagnose the problem, I'll only answer because it's obvious. The answer to your question lies in the origins

[Rails] what is :media in application layout in .js and .css include tag???

2012-09-04 Thread Fahim Patel
%= stylesheet_link_tag components/jscrollpane/jscrollpane.css, :media=screen % %= stylesheet_link_tag components/tipsy/tipsy.css, :media=all % what is this :media? and what is the this all and screen if there are more than screen and all in media tag than explain it also

Re: [Rails] Rails Generate Devise::session controller

2012-09-04 Thread Ashokkumar Yuvarajan
Hi, I created session::controller as u said and also used routes like devise_for :users, :controllers = { :sessions = users/sessions } But i got an error Routing Error uninitialized constant Users Try running rake routes for more information on available routes. Please advice... On Mon,

Re: [Rails] Re: [JOB] ActionScript (AS3) Developer - NYC

2012-09-04 Thread Colin Law
On 4 September 2012 02:54, Samir S. li...@ruby-forum.com wrote: Ok, can you please delete my reply. Not possible, this is a mailing list not a forum (though you may be using it on a forum-like interface). Once messages are distributed to inboxes around the world they cannot be deleted. Colin

Re: [Rails] Rails Generate Devise::session controller

2012-09-04 Thread Jordon Bedwell
On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan ashokku...@shriramits.com wrote: Hi, I created session::controller as u said and also used routes like devise_for :users, :controllers = { :sessions = users/sessions } But i got an error Routing Error uninitialized constant Users

Re: [Rails] Re: How to connect gmap with rails.

2012-09-04 Thread Colin Law
On 4 September 2012 05:49, Balaji G. li...@ruby-forum.com wrote: balaji@balaji-desktop:~$ cd myrails balaji@balaji-desktop:~/myrails$ cd gmaps balaji@balaji-desktop:~/myrails/gmaps$ rails s /usr/local/lib/ruby/1.8/webrick/httpservlet/cgihandler.rb:20: Use RbConfig instead of obsolete and

[Rails] Re: How to connect gmap with rails.

2012-09-04 Thread Balaji G.
how can i install those javascript files..can you tell me ? -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe

Re: [Rails] what is :media in application layout in .js and .css include tag???

2012-09-04 Thread Colin Law
On 4 September 2012 08:01, Fahim Patel pafa...@gmail.com wrote: %= stylesheet_link_tag components/jscrollpane/jscrollpane.css, :media=screen % %= stylesheet_link_tag components/tipsy/tipsy.css, :media=all % what is this :media? and what is the this all and screen if there are

Re: [Rails] Rails Generate Devise::session controller

2012-09-04 Thread Ashokkumar Yuvarajan
I have user.rb model. On Tue, Sep 4, 2012 at 1:19 PM, Jordon Bedwell envyge...@gmail.com wrote: On Tue, Sep 4, 2012 at 2:12 AM, Ashokkumar Yuvarajan ashokku...@shriramits.com wrote: Hi, I created session::controller as u said and also used routes like devise_for :users, :controllers =

[Rails] Re: transfer text file to lpt1 port

2012-09-04 Thread ahmed el attar
Colin Law wrote in post #1074484: On 3 September 2012 19:11, ahmed el attar li...@ruby-forum.com wrote: Hello, I'm new ruby developer, any idea about : send text file to lpt1 port where i have installed an intermec printer? Are you trying to do this on the client PC or on the server? If

[Rails] How to get contact list from yahoo in rails using OAuth

2012-09-04 Thread news.anand11
I can successfully get the contacts from google using OAuth gem in rails. my gmail configuration is : :google={ :key=***, :secret=***, :expose = true, :scope=https://www.google.com/m8/feeds/; } now i want to get contact from yahoo and hot mail. How to get that contact I have

Re: [Rails] Re: transfer text file to lpt1 port

2012-09-04 Thread Colin Law
On 4 September 2012 10:25, ahmed el attar li...@ruby-forum.com wrote: Colin Law wrote in post #1074484: On 3 September 2012 19:11, ahmed el attar li...@ruby-forum.com wrote: Hello, I'm new ruby developer, any idea about : send text file to lpt1 port where i have installed an intermec

Re: [Rails] How to get contact list from yahoo in rails using OAuth

2012-09-04 Thread Colin Law
On 4 September 2012 10:39, news.anand11 news.anan...@gmail.com wrote: I can successfully get the contacts from google using OAuth gem in rails. my gmail configuration is : :google={ :key=***, :secret=***, :expose = true, :scope=https://www.google.com/m8/feeds/; }

[Rails] Re: transfer text file to lpt1 port

2012-09-04 Thread ahmed el attar
Thanks, but i want send text file from server to client (lpt1 port), it's possible? -- 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] Re: Re: Write to tempfile

2012-09-04 Thread Dave Castellano
Hassan Schroeder wrote in post #1074525: On Mon, Sep 3, 2012 at 7:57 PM, Dave Castellano li...@ruby-forum.com wrote: I am placing an undefined method after file.write(Hello). Crashes the program and leaves the file so I can open it - its empty... Interesting programming style :-)

Re: [Rails] Rails Generate Devise::session controller

2012-09-04 Thread subbarao
Your error saying that you don't have Users model and controler may be you created the devise as Admin. If so please replace user with admin in all places. If u want to understand flow take new project and try documentation (https://github.com/plataformatec/devise

[Rails] Re: Re: Write to tempfile

2012-09-04 Thread Jordon Bedwell
On Tuesday, 4 September 2012 06:27:52 UTC-5, Ruby-Forum.com User wrote: Yes, I'm learning to program on my own... I don't believe anyone would pay for my work :-) Thanks, you were right - it is writing to the file and I can see it after closing. Can I follow with one last question...

[Rails] problems following this tutorial

2012-09-04 Thread roelof
Hello, I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html But when I do rails generate controller home index I get this output : [code] Usage : rails new APP_PATH [options] [/code] I have Ruby version 1.9.3 Roelof -- You received this message because

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

2012-09-04 Thread Tima
Hi everyone! I'm a newbie engineer. I started rails programming, but I'm learning alone and can't understand other rails cord so much. So I wanna have friend with other newbie rails engineers and share a process of making apps. It is not for sharing the result of programming like Github, but

[Rails] Newbie question: How do I get CarrierWave to save my files in a has_many / belongs_to setup?

2012-09-04 Thread Jon
I posted this on StackOverflow, and didn't get much love. I'm hoping someone here can help me. Thanks in advance! I have a form that displays information about a single commercial real estate property. I am trying to create a feature on it that allows the user to upload files to Amazon S3

[Rails] Event Logging

2012-09-04 Thread Avi
I am a newbie in Ruby on Rails.I want to log events from my rails application to DB. I am using *gem audited-activerecord, ~ 3.0.0.rc2*. This is used for CRUD operations. But I want to use it in controllers while application login, logout other things. How can I achieve this? -- You

[Rails] Cannot create assoication between new objects for nested model form in rails

2012-09-04 Thread jasonlhy
I am watching on railscastshttp://railscasts.com/episodes/196-nested-model-form-part-1?view=asciicast and tried to write the example with my own hands. But I got an trouble with the step of: Creating The Form. It requires creating association between Survey and Question. But this

[Rails] Re: Re: Write to tempfile

2012-09-04 Thread Frederick Cheung
On Tuesday, September 4, 2012 12:49:29 PM UTC+1, Jordon Bedwell wrote: I would personally write that method to be a little safer IMO. Yeah it's true that you can sometimes guarantee that problems won't happen but relying on that slim chance is bad, it's better to let file closing

Re: [Rails] problems following this tutorial

2012-09-04 Thread Colin Law
On 3 September 2012 19:12, roelof rwob...@hotmail.com wrote: Hello, I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html But when I do rails generate controller home index I get this output : [code] Usage : rails new APP_PATH [options] [/code] Are you in

Re: [Rails] Cannot create assoication between new objects for nested model form in rails

2012-09-04 Thread Colin Law
On 3 September 2012 12:44, jasonlhy jason...@gmail.com wrote: I am watching on railscasts and tried to write the example with my own hands. But I got an trouble with the step of: Creating The Form. It requires creating association between Survey and Question. But this association cannot be

Re: [Rails] How to get contact list from yahoo in rails using OAuth

2012-09-04 Thread news.anand11
stacktrace: Started GET /oauth_consumers/yahoo for 127.0.0.1 at 2012-09-04 17:50:39 +0530 Processing by OauthConsumersController#show as HTML Parameters: {id=yahoo} User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 YahooToken Load (0.1ms) SELECT

Re: [Rails] problems following this tutorial

2012-09-04 Thread roelof
Op dinsdag 4 september 2012 14:08:23 UTC+2 schreef Colin Law het volgende: On 3 September 2012 19:12, roelof rwo...@hotmail.com javascript: wrote: Hello, I try to follow this tutorial : http://guides.rubyonrails.org/getting_started.html But when I do rails generate controller

[Rails] Re: n00b: authentication via Google

2012-09-04 Thread Robert Walker
AlexD wrote in post #1074276: What is the simple way in Rails to do user authentication via Google? OmniAuth: https://github.com/intridea/omniauth Authentication strategies: https://github.com/intridea/omniauth/wiki/List-of-Strategies Google specific strategies:

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

2012-09-04 Thread tonypm
What I actually find most important is being able to do a well worded google search (I sometimes wonder if there should be a qualification for that in itself lol?). The Ruby and the Rails forums are very friendly and helpful. I usually start a google search with Ruby or Rails and the

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

2012-09-04 Thread Walter Lee Davis
I have Ransack set up to do simple attribute-based search in my application. Now, I'm trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on

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

2012-09-04 Thread Walter Lee Davis
On Sep 4, 2012, at 12:07 PM, Walter Lee Davis wrote: I have Ransack set up to do simple attribute-based search in my application. Now, I'm trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this

[Rails] Re: Re: Write to tempfile

2012-09-04 Thread Dave Castellano
Frederick Cheung wrote in post #1074604: On Tuesday, September 4, 2012 12:49:29 PM UTC+1, Jordon Bedwell wrote: file.rewind $stdout.puts file.read # Will output the source without evaling. # raise # Uncomment this line to see what I mean about ensure. ensure

[Rails] can't access helper method in forem engine

2012-09-04 Thread sheamus
My rails application has a helper method 'current_project' in the projects_helper file. In my application_controller, I include the ProjectsHelper module. After installing the forem engine (for forums), when I navigate to /forums I get an error that current_project is not known. What do I

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

2012-09-04 Thread Salvatore Pelligra
7stud -- wrote in post #1074532: Your route syntax is confusing to me. How about: controller :sessions do match '/login' = :login_create, :via = :post match '/login' = :login, :via = :get match '/logout' = :logout end ...which is pieced together from here:

[Rails] Math between Models

2012-09-04 Thread Sachin S.
I have two models that are associated with has_and_belongs_to_many, and I'm trying to create a method that computes something with attributes from both models, but I'm getting an undefined method error with the code I'm using below. What am I missing? Model_1.rb Class Model_1 ActiveRecord::Base

Re: [Rails] Math between Models

2012-09-04 Thread Michael Pavling
On 4 September 2012 18:58, Sachin S. li...@ruby-forum.com wrote: Class Model_1 ActiveRecord::Base ... has_and_belongs_to_many :model_2 def some_method attr_1 * Model_2.find(model_2_id).attr_I_need end If the relationship is HABTM, you won't have a model_2_id attribute to find by,

[Rails] Mongrel_service and bundler

2012-09-04 Thread John James
Hi all, I have successfully installed mongrel, mongrel_service, win-32 service and have also successfully installed the service on my computer and is starting successfully. The major problem am having now is that, my application uses a bundle of gems so under normal circumstances mongrel_rails

[Rails] Re: Math between Models

2012-09-04 Thread Sa S.
Hi Michael, Thanks for the reply. I actually have created the join table as documented in the rails guides, with the right naming convention and all. It's got a model_1_id and a model_2_id, and an index Sure, I can give some more details. I'm creating a golf application that let's users

[Rails] Re: Math between Models

2012-09-04 Thread Robert Walker
Sa S. wrote in post #1074685: Hi Michael, Thanks for the reply. I actually have created the join table as documented in the rails guides, with the right naming convention and all. It's got a model_1_id and a model_2_id, and an index Sure, I can give some more details. I'm creating a golf

[Rails] Re: Math between Models

2012-09-04 Thread Robert Walker
Robert Walker wrote in post #1074687: class Player def recommended_courses Course.where(courses[:handicap].gt(a_player.handicap)) .and(courses[:handicap].lt(a_player.handicap) end end Just realized after posting that this is a silly example, but should get you on the right

[Rails] Re: Math between Models

2012-09-04 Thread Sa S.
Thanks for the help! Although I'm not sure I totally understand it, still a bit of a noob. So if I wanted to do something as simple as subtract the user's handicap from the course's handicap, how would I create a method for that in the Player model? (sorry maybe you might have done it already

Re: [Rails] Re: Re: Write to tempfile

2012-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2012 at 9:37 AM, Dave Castellano li...@ruby-forum.com wrote: Tempfile.open([hello_world, .rb], ./lib/generators) do |file| If the file is a method, how can I call the method here and get the returned arguments? The file can't be a method, but it may contain a string describing

Re: [Rails] problems following this tutorial

2012-09-04 Thread Carlos Augusto Borges
I think so. Im working with Railsinstaller on Win7. And I'm working in the c:/railsinstaller/ruby.1.9.3 directory. Oh no... That's Rails' main directory not your App's directory. The first step should be the app's creation with: rails new application_name Than you should change your

[Rails] Re: Math between Models

2012-09-04 Thread Robert Walker
Sa S. wrote in post #1074690: Thanks for the help! Although I'm not sure I totally understand it, still a bit of a noob. So if I wanted to do something as simple as subtract the user's handicap from the course's handicap, how would I create a method for that in the Player model? (sorry maybe

[Rails] Re: Math between Models

2012-09-04 Thread Robert Walker
Sa S. wrote in post #1074690: Thanks for the help! Although I'm not sure I totally understand it, still a bit of a noob. So if I wanted to do something as simple as subtract the user's handicap from the course's handicap, how would I create a method for that in the Player model? (sorry maybe

[Rails] Re: Math between Models

2012-09-04 Thread Sa S.
Okay great, thanks! I think I'll actually trying doing this in the join table. I guess my last question would be how would I call that method from that join table in let's say the Player show view? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

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

2012-09-04 Thread 7stud --
The problem isn't in the route, but in the strange behavior of get and post, instance methods of ActionController::TestCase::Behavior My rspec tests seem to work as you would expect. I used a controller named Dogs to test the routes: require 'spec_helper' describe Dogs Pages do describe

[Rails] Re: problems following this tutorial

2012-09-04 Thread 7stud --
...as stated in the tutorial here: 3.2 Creating the Blog Application To begin, open a terminal, navigate to a folder where you have rights to create files, and type: $ rails new blog This will create a Rails application called Blog in a directory called blog. You can see all of the switches

[Rails] Re: Re: Re: Write to tempfile

2012-09-04 Thread Dave Castellano
Hassan Schroeder wrote in post #1074693: On Tue, Sep 4, 2012 at 9:37 AM, Dave Castellano li...@ruby-forum.com wrote: Tempfile.open([hello_world, .rb], ./lib/generators) do |file| If the file is a method, how can I call the method here and get the returned arguments? The file can't be a

[Rails] Re: RoutesProxy

2012-09-04 Thread John Merlino
I would like to bump this. Simple question. When will the first element of an array passed as first argument to form_for ever be an instance of RoutesProxy? The rails source looks for this, so I am sure someone out there has examples. On Sep 3, 2:05 pm, John Merlino stoici...@aol.com wrote: when

[Rails] Generate devise session controller

2012-09-04 Thread Maddy
Hi Folks Good morning, Am new to rails. I used devise in my project ,i need to write some conditions in my session controller.How can i generate devise session controller. I have user.rb model. Steps which i made: 1. Generate rails g controller session 2. Session controller generated 3.