Re: [Rails] misleading variable value

2012-09-10 Thread Michael Pavling
On 10 September 2012 02:41, John Merlino stoici...@aol.com wrote: I'm going to invoke action view base from console, passing a string object: 1.9.3p0 :016 ActionView::Base.new('app/views') Look at the return value assigned to @view_paths. It should not be an array. It should be a PathSet

Re: [Rails] Object Efficiency

2012-09-10 Thread Michael Pavling
On 10 September 2012 05:03, rails2012 derek...@hotmail.com wrote: In my rufus config file, I have to call MyController.new.checkEmail. Now I set it to run every 5 minutes. So the system creates a new MyController instance every 5 minutes. That's very inefficient right? Normally it would be

Re: [Rails] Re: get property of a model data

2012-09-10 Thread Colin Law
On 10 September 2012 03:58, Soichi Ishida li...@ruby-forum.com wrote: item = @result.first item.user_id It worked fine! Thank you very much. Now I need to study 'type Relation' :) The reason it did not work originally is that @result is not a single record, it is all the records that match

Re: [Rails] flash[:notice] not working

2012-09-10 Thread Colin Law
On 10 September 2012 05:48, Manoj M. li...@ruby-forum.com wrote: Hi, anybody please help me out,am using rails 3 but using this flash[:notice] doesnot works, i have used this in controllers. any idea ? please help. Have a look at the Rails Guide on debugging, it will show you techniques

Re: [Rails] flash[:notice] not working

2012-09-10 Thread Loganathan Sellapa
Paste your code... Sent from Samsung Mobile. On Sep 10, 2012 1:58 PM, Colin Law clan...@googlemail.com wrote: On 10 September 2012 05:48, Manoj M. li...@ruby-forum.com wrote: Hi, anybody please help me out,am using rails 3 but using this flash[:notice] doesnot works, i have used this

[Rails] Re: flash[:notice] not working

2012-09-10 Thread Manoj M.
Loganathan S. wrote in post #1075308: Paste your code... Sent from Samsung Mobile. Hi, here is my code below, @user is saved successfully but not flash doesnot works. I have wrote this in userscontroller if @user.save flash[:notice] = Your account has been created.

Re: [Rails] Re: Assets are not compiling

2012-09-10 Thread Loganathan Sellapa
Fixed it by pasting the below code in production.rb. * config.serve_static_assets = true* regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe http://vizualize.me/loganathan On Fri, Sep 7, 2012 at 2:33 PM, Loganathan Sellapa

[Rails] Taking about a minute do display error in development

2012-09-10 Thread Damjan Rems
All of the sudden it takes about a minute to display error in development environment. Server just waits a minute before displaying standard error message. I have no idea what could cause a problem. by TheR -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Taking about a minute do display error in development

2012-09-10 Thread Colin Law
On 10 September 2012 11:47, Damjan Rems li...@ruby-forum.com wrote: All of the sudden it takes about a minute to display error in development environment. Server just waits a minute before displaying standard error message. What is the error message? Colin -- You received this message

Re: [Rails] Taking about a minute do display error in development

2012-09-10 Thread Gintautas Šimkus
sleep 60 somewhere in the code? 2012/9/10 Colin Law clan...@googlemail.com On 10 September 2012 11:47, Damjan Rems li...@ruby-forum.com wrote: All of the sudden it takes about a minute to display error in development environment. Server just waits a minute before displaying standard error

[Rails] Re: Taking about a minute do display error in development

2012-09-10 Thread Damjan Rems
Colin Law wrote in post #1075314: On 10 September 2012 11:47, Damjan Rems li...@ruby-forum.com wrote: All of the sudden it takes about a minute to display error in development environment. Server just waits a minute before displaying standard error message. What is the error message? Colin

[Rails] Re: Taking about a minute do display error in development

2012-09-10 Thread Damjan Rems
Gintautas S. wrote in post #1075315: sleep 60 somewhere in the code? 2012/9/10 Colin Law clan...@googlemail.com ;-) -- 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

Re: [Rails] Re: flash[:notice] not working

2012-09-10 Thread Jordon Bedwell
On Mon, Sep 10, 2012 at 5:34 AM, Manoj M. li...@ruby-forum.com wrote: Loganathan S. wrote in post #1075308: Paste your code... Sent from Samsung Mobile. Hi, here is my code below, @user is saved successfully but not flash doesnot works. I have wrote this in userscontroller if

Re: [Rails] Re: Taking about a minute do display error in development

2012-09-10 Thread Colin Law
On 10 September 2012 12:11, Damjan Rems li...@ruby-forum.com wrote: Colin Law wrote in post #1075314: On 10 September 2012 11:47, Damjan Rems li...@ruby-forum.com wrote: All of the sudden it takes about a minute to display error in development environment. Server just waits a minute before

Re: [Rails] Re: flash[:notice] not working

2012-09-10 Thread Jim Ruther Nill
there shouldn't be any issue with your code. how do you display the flash messages? On Mon, Sep 10, 2012 at 8:34 PM, Manoj M. li...@ruby-forum.com wrote: Loganathan S. wrote in post #1075308: Paste your code... Sent from Samsung Mobile. Hi, here is my code below, @user is saved

[Rails] suggestion for user-friendly input: typeahead

2012-09-10 Thread Soichi Ishida
Rails 3.1.3 I am hoping some of you may give me suggestions about user input helper methods. I have a large set of model, Flight, and its fields are airline, flight_name, departure, destination As you can imagine, the flight data will be very large; it could be thousands if it is

[Rails] insert multiple records to a single table from a single form

2012-09-10 Thread abhimanyu bv
Generally if we can create only 1 record, say 1 user at a time from the form. But what if I want to create multiple users from a single form? There are no associations with other models. How can i do that? -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Taking about a minute do display error in development

2012-09-10 Thread Damjan Rems
Colin Law wrote in post #1075319: On 10 September 2012 12:11, Damjan Rems li...@ruby-forum.com wrote: There is no special error but any program error that may occur. It just waits minute before program error is displayed. Be it in controller or view or helper. Do you mean syntax errors, ruby

[Rails] Re: insert multiple records to a single table from a single form

2012-09-10 Thread Robert Walker
abhimanyu bv wrote in post #1075325: Generally if we can create only 1 record, say 1 user at a time from the form. But what if I want to create multiple users from a single form? There are no associations with other models. How can i do that? What is preventing you from doing that? What have

[Rails] Migration in vendor folder

2012-09-10 Thread keerthi priya
Hi all -- 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 from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this

[Rails] Migration in Vendor folder

2012-09-10 Thread keerthi priya
Hi all There are few migrations in Vendor folder and i want to run those migrations, do i need to copy those to db folder and run them or there is another way to run the migration present in Vendor folder. Cheers, KP -- You received this message because you are subscribed to the

[Rails] Tips: workarounds to do free full-text search on Heroku :-)

2012-09-10 Thread Dave Aronson
Recently I started a new side-project, using some full-text search done with Solr, intending to put it on Heroku. However, I had forgotten that Heroku doesn't allow any Solr for free! So I ripped it out and looked for alternatives, winding up with pg_search. I ran up against some problems, but

Re: [Rails] Re: Taking about a minute do display error in development

2012-09-10 Thread Dave Aronson
On Mon, Sep 10, 2012 at 8:15 AM, Damjan Rems li...@ruby-forum.com wrote: It is typical situation when you tell a problem to a friend the problem resolves itself ;-) Actually, this is a very good problem-solving technique. If you can't find a human to explain it to (best because they will ask

[Rails] Re: mattr_accessor inside a class

2012-09-10 Thread John Merlino
it looks as if it is onyl available on the class because if you look it says self.class.fallbacks, yet that wouldnt make sense either because then what would be the point of its existance if you had to reach the class for it it, why not just create a class level macro instead? On Sep 9, 3:10 pm,

[Rails] Re: suggestion for user-friendly input: typeahead

2012-09-10 Thread Pradeep Singh
Soichi san, There's a lot more to it than you're probably aware right now. Look at Lucene and Solr. There's a library in ruby to integrate with Solr - rsolr. There's a TermComponent in Solr that goes half way to what you're trying to do. -- Posted via http://www.ruby-forum.com/. -- You

RE: [Rails] Object Efficiency

2012-09-10 Thread Derek Lin
Just want to know the best practices to make sure I get off on the right foot. I think on a general rule, creating fewer instances of an object is ideal for performance right? (I am not suffering any real problems yet) In Java, there is Inversion of Control/Dependency Injection. I have read

[Rails] Re: Case of lost milliseconds

2012-09-10 Thread Pradeep Singh
Any advice, comments please! -- 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 from this group, send email to

Re: [Rails] Object Efficiency

2012-09-10 Thread Jordon Bedwell
On Mon, Sep 10, 2012 at 11:59 AM, Derek Lin derek...@hotmail.com wrote: Just want to know the best practices to make sure I get off on the right foot. I think on a general rule, creating fewer instances of an object is ideal for performance right? (I am not suffering any real problems yet)

Re: [Rails] Case of lost milliseconds

2012-09-10 Thread Colin Law
On 10 September 2012 00:31, Pradeep Singh li...@ruby-forum.com wrote: Can anyone explain where are the milliseconds getting lost - Completed 200 OK in 438ms (Views: 145.0ms | ActiveRecord: 15.0ms) Completed 200 OK in 378ms (Views: 206.0ms | ActiveRecord: 2.0ms) Completed 200 OK in 275ms

[Rails] Aloha Ruby Conf 2012

2012-09-10 Thread Joreal Whitfield
Aloha Ruby Conference (http://aloharubyconf.com) is approaching soon, October 8-9, 2012, at the Sheraton Waikiki Beach Hotel. We have a volcanic line up of speakers and topics. Aaron Patterson's is kicking off the conference by giving us an update on Rails 4 and the future of the Web. The day 2

[Rails] Re: Case of lost milliseconds

2012-09-10 Thread Pradeep Singh
I was hoping to take a shortcut by asking about a very very specific case. There must be some opinions out there about what all goes on regarding this one and only one item of interest. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] Re: Case of lost milliseconds

2012-09-10 Thread Colin Law
On 10 September 2012 21:03, Pradeep Singh li...@ruby-forum.com wrote: I was hoping to take a shortcut by asking about a very very specific case. There must be some opinions out there about what all goes on regarding this one and only one item of interest. Since you have not quoted the previous

[Rails] Re: Error installing therubyracer

2012-09-10 Thread Sam Woodard
@johnrlive install git with homebrew rather than relying on the os x version. -- 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: suggestion for user-friendly input: typeahead

2012-09-10 Thread Soichi Ishida
Thanks for your answer. There's a lot more to it than you're probably aware right now. Does this mean in a bad sense? Am I underestimating the functionality requirement? Look at Lucene and Solr. There's a library in ruby to integrate with Solr - rsolr. There's a TermComponent in Solr that

Re: [Rails] Migration in Vendor folder

2012-09-10 Thread sameena Khan
if this can be done even i wanna know how to do it. On Mon, Sep 10, 2012 at 7:31 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all There are few migrations in Vendor folder and i want to run those migrations, do i need to copy those to db folder and run them or there is

[Rails] Which Static Web Generator should i use?

2012-09-10 Thread ACK
i know average ruby language. i sort out two static web generator* **Nanoc* and *Middleman* my requirements are:- 1. easy to customize 2. easy to learn 3. more resources to learn so tell me which one will be better for me Nanoc or Middleman? Thanks for Reading -- You received this