[Rails] Ruby on Rails Developer Needed!!!

2010-08-04 Thread sergio longoria
Project Length: 12 Months Location of Project: Costa Mesa, CA Start Date: Immediatley. Looking to possibly hire over phone interview Designs, develops, and implements web-based Java applications to support business requirements. Follows approved life cycle methodologies, creates design

[Rails] Re: how to deal with gender

2010-08-04 Thread Don S.
I can't help but think of the commercial (Visa I think) playing during the world cup where the child had all the names of players on a winning squad from an earlier world cup On Jul 30, 6:44 am, bingo bob li...@ruby-forum.com wrote: An unlimited amount? Well yes, I believe so. In the vast

[Rails] Re: PDFKit Fork() Function Unimplemented Error - HELP!

2010-08-04 Thread Frederick Cheung
On Aug 3, 6:43 pm, Dylan Mccarthy li...@ruby-forum.com wrote: Hello All, We're working on a project on a Windows machine that will use PDFKit to convert an HTML page to a PDF. I have followed all the instructions at GitHub (http://github.com/jdpace/PDFKit), for installing wkhtmltopdf and

[Rails] Getting Error in browser

2010-08-04 Thread Musdev Musdev
I get this Error message in my browser SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression The code in my product.rb file class Product ActiveRecord::Base validates_presence_of :title, :description, :image_url

[Rails] Hello friends !

2010-08-04 Thread sam
Hello friends ! I am in need of implementing the live chat functionality in my application. I have juggernaut to implement this functionality. I have followed http://juggernaut.rubyforge.org/.. i have followed the steps of this blog to get the live chat functionality. But i

Re: [Rails] Getting Error in browser

2010-08-04 Thread kannav rajeev
Check out ProductsController # index also please On Wed, Aug 4, 2010 at 12:30 PM, Musdev Musdev li...@ruby-forum.com wrote: I get this Error message in my browser SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression

[Rails] Drop down menu

2010-08-04 Thread disruptive tech
I have a series of countries listed in a table in the following form: id, country_name I want to pull these in and I'm trying everything under the sun from a variety of different peoples pages. I just cannot get anything working at all. I have tried pulling all the records in the the ctrl.rb

[Rails] Re: Drop down menu

2010-08-04 Thread disruptive tech
disruptive tech wrote: I have a series of countries listed in a table in the following form: id, country_name I want to pull these in and I'm trying everything under the sun from a variety of different peoples pages. I just cannot get anything working at all. I have tried pulling all the

[Rails] Re: Drop down menu

2010-08-04 Thread disruptive tech
I'm also trying this: controller -- def new @usr = Usr.new @country_list = Country.find(:all, :order=country_name) respond_to do |format| format.html # new.html.erb format.xml { render :xml = @usr } end end and in view --- %=

[Rails] Re: SystemExit: exit

2010-08-04 Thread Pale Horse
Robert Walker wrote: Pale Horse wrote: ActionView::TemplateError (SystemExit: exit: SELECT * FROM product_stocklevels WHERE (product_stocklevels.product_id = 831 AND (size = 'W44 L 32' AND stock 0)) LIMIT 1) Before I paste more code, has anyone come across this before? Maybe you need

Re: [Rails] Rails 2.3.8 and form_tag usage

2010-08-04 Thread Colin Law
On 3 August 2010 23:04, crashbangboom crashbangb...@gmail.com wrote: I have just upgraded my entire system to use the subject line version of rails...of course...this broke my previous rails apps as many things are handled a bit differently...! I have all apps running fine now but am having a

Re: [Rails] Re: :url being ignored or routing problem?

2010-08-04 Thread Colin Law
On 4 August 2010 02:43, suzuki elle.on.ra...@gmail.com wrote: if i understand your question properly, i get a page with a partial, where the partial area displays a 404 error (The page you were looking for doesn't exist.  You may have mistyped the address or the page may have moved.)  i

[Rails] YAUANA: Yet Anather, Unknown Action - No Action respong to

2010-08-04 Thread Cosimo Guglielmucci
Hi all, I'm facing with a strange situation because I've 2 different results on different machines with the same code. My route.rb is quite simple: ActionController::Routing::Routes.draw do |map| map.connect ':controller/service.wsdl', :action = 'wsdl' map.connect

Re: [Rails] Hello friends !

2010-08-04 Thread Colin Law
On 4 August 2010 08:06, sam swaminadhank...@gmail.com wrote: Hello friends !                      I am in need of implementing the live chat functionality in my application. I have juggernaut to implement this functionality. I have followed http://juggernaut.rubyforge.org/.. i have followed

Re: [Rails] Re: Drop down menu

2010-08-04 Thread Colin Law
On 4 August 2010 09:32, disruptive tech li...@ruby-forum.com wrote: I'm also trying this: controller -- def new   �...@usr = Usr.new   �...@country_list = Country.find(:all, :order=country_name)    respond_to do |format|      format.html # new.html.erb      format.xml  { render

[Rails] Re: Handling an html5 drag n' drop upload

2010-08-04 Thread Uma Mahe
Hi Fernando Perez, request.raw_post use this in controller you will be getting the post data complete file content . Then you can write the content in to the file and save in the filesystem. Thanks Fernando Perez wrote: Hi, I've started implementing an html5 drag

[Rails] Re: Re: Drop down menu

2010-08-04 Thread disruptive tech
Colin Law wrote: On 4 August 2010 09:32, disruptive tech li...@ruby-forum.com wrote: � � �format.xml �{ render :xml = @usr } You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.map What happens if, rather

[Rails] Re: :url being ignored or routing problem?

2010-08-04 Thread Frederick Cheung
On Aug 4, 2:43 am, suzuki elle.on.ra...@gmail.com wrote: if i understand your question properly, i get a page with a partial, where the partial area displays a 404 error (The page you were looking for doesn't exist.  You may have mistyped the address or the page may have moved.)  i expect

Re: [Rails] Re: Re: Drop down menu

2010-08-04 Thread Colin Law
On 4 August 2010 10:56, disruptive tech li...@ruby-forum.com wrote: Colin Law wrote: On 4 August 2010 09:32, disruptive tech li...@ruby-forum.com wrote: � � �format.xml �{ render :xml = @usr } You have a nil object when you didn't expect it! You might have expected an instance of Array. The

[Rails] Re: Re: Drop down menu

2010-08-04 Thread disruptive tech
Extracted source (around line #23): 20: %= f.text_field :email % 21: /p 22: p 23: %= collection_select(:country, :id, @country_list, :id, :country_name, 24: options ={:prompt = -Select a cnt}, :class =country) % 25: %= f.label :country %br / 26: %= f.text_field :country %

Re: [Rails] Re: Juggernaut Rails 3

2010-08-04 Thread Peter De Berdt
Why not fork the repository on github, dive into the code, fix the incompatibilities (also a good exercise on getting familiar with Rails 3 and Railties) and donate back to the community? On 03 Aug 2010, at 15:42, Rémi Gagnon wrote: Same thing for me, I plan to put online a site with

[Rails] Re: Re: Drop down menu

2010-08-04 Thread disruptive tech
I can see data in the DB, but cannot seem to get this into a drop down. The controller code does not produce an error. But the errors would seem to imply that there is no data being pulled in. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

Re: [Rails] Re: Re: Drop down menu

2010-08-04 Thread Colin Law
On 4 August 2010 11:10, Colin Law clan...@googlemail.com wrote: On 4 August 2010 10:56, disruptive tech li...@ruby-forum.com wrote: Colin Law wrote: On 4 August 2010 09:32, disruptive tech li...@ruby-forum.com wrote: � � �format.xml �{ render :xml = @usr } You have a nil object when you

[Rails] config.gem 'hpricot' still wants require 'hpricot'

2010-08-04 Thread Fernando Perez
Why do I need to add require 'hpricot' if I already have defined config.gem 'hpricot' in environment.rb? The strange thing is that when I use script/console I can use Hpricot directly Oo -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Rails3 Engines (mountable apps)...

2010-08-04 Thread H.J. Blok
Hello, I've a question about Rails 3 Engines. I'm looking everywhere for good documentation on this subject, but didn't find it. I'm trying to create a mountable app (embedding a Rails application in another Rails application). Both the 'base' application and the 'embedded' application are

[Rails] Re: YAUANA: Yet Anather, Unknown Action - No Action respong to

2010-08-04 Thread Fernando Perez
Why don't you use resourceful routes? -- 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-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] How to inject a value in params when testing a helper method

2010-08-04 Thread rtacconi
I what to try this method in a helper class: def moderator_buttons? return true if params[:question_status] == 'HOST_INBOX' return true if params[:question_status] == 'HOST_INBOX_READ' return true if params[:question_status] == 'DELETED' return true if params[:question_status] ==

[Rails] Need syntax help for the conditions argument in the find (ie Active Record) method

2010-08-04 Thread ct9a
hi guys in relation to the find method in Active Record, can anyone tell me how to write the syntax for the following? 1) entries created within the past 2 hours, AND 2) entries that do not have a status of Sold at the moment, i have the following and i still get a syntax error of

[Rails] Passenger Vs Mongrel

2010-08-04 Thread hari bhat
Hi Guys, I am running app using passenger but still booting with mongrel in console if i write ruby script/server = Booting Mongrel = Rails 2.3.5 application starting on http://0.0.0.0:3000 = Call with -d to detach = Ctrl-C to

[Rails] Re: Need syntax help for the conditions argument in the find (ie Active Record) method

2010-08-04 Thread Frederick Cheung
On Aug 4, 1:08 pm, ct9a anexi...@gmail.com wrote: hi guys  in relation to the find method in Active Record, can anyone tell me how to write the syntax for the following? 1) entries created within the past 2 hours, AND 2) entries that do not have a status of Sold at the moment,  i have

[Rails] Re: Passenger Vs Mongrel

2010-08-04 Thread Frederick Cheung
On Aug 4, 1:13 pm, hari bhat haribha...@gmail.com wrote: Hi Guys,                  I am running app using passenger but still booting with mongrel in console if i write ruby script/server That's normal - running script/server will always start mongrel - passenger only comes into play when

[Rails] Re: Need syntax help for the conditions argument in the find (ie Active Record) method

2010-08-04 Thread ct9a
hi, Frederick, I was hoping to be able to mix hash and array conditions. After all, in an array , we could have hash element conditions. Anyway, your feedback along with my trials on the console further confirms that it cannot be done. I have fixed the problem in another manner (ie. use a

[Rails] Re: Hello friends !

2010-08-04 Thread sam
Hi colin ! Thanks for your response. when i tries to execute Juggernaut.send_to_all(alert('hi from juggernaut')) in console. it is throwing error. It says Juggernaut.send_to_all' is not recognized as an internal or external command, operable program or batch file. I was not able

Re: [Rails] Re: Hello friends !

2010-08-04 Thread Colin Law
Please don't top post, it makes it difficult to follow the thread. Thanks On 4 August 2010 13:53, sam swaminadhank...@gmail.com wrote: Hi colin !                Thanks for your response. when i tries to execute Juggernaut.send_to_all(alert('hi from juggernaut')) in console. it is throwing

[Rails] Re: Re: Re: Drop down menu

2010-08-04 Thread disruptive tech
Colin Law wrote: On 4 August 2010 11:10, Colin Law clan...@googlemail.com wrote: the id and country name for each item in @country list?  Doing that UK  Show  Edit  Destroy France  Show  Edit  Destroy Germany  Show  Edit  Destroy Is that from code inserted in the view at the same point as

[Rails] Rails 3: problems with ‘lib’ and ‘requ ire’

2010-08-04 Thread Mastedm
Hi! Ruby files from the lib directory don’t automaticaly loaded/required. I tried adding string: config.autoload_paths += %W(#{config.root}/lib) to my application.rb file but it doesn’t work too. Second problem with ‘require’ files (libs or modules). At the first request to the application

[Rails] FOR or EACH?

2010-08-04 Thread Pale Horse
When looping through arrays. What'd you argue to be good (or best) practice? % for something in @lots_of_things % %= something.name % % end % % @lots_of_things.each do |something| % %= something.name % % end % I've read mixed opinions on this small topic. Some say that FOR loops are easier,

[Rails] Re: Rails3 Engines (mountable apps)...

2010-08-04 Thread Samuel Kadolph
H.J. Blok wrote: Hello, I've a question about Rails 3 Engines. I'm looking everywhere for good documentation on this subject, but didn't find it. I'm trying to create a mountable app (embedding a Rails application in another Rails application). Both the 'base' application and the

[Rails] Re: FOR or EACH?

2010-08-04 Thread Marnen Laibow-Koser
Pale Horse wrote: When looping through arrays. What'd you argue to be good (or best) practice? % for something in @lots_of_things % %= something.name % % end % % @lots_of_things.each do |something| % %= something.name % % end % I've read mixed opinions on this small topic. Some

[Rails] where do you find load errors in view helper?

2010-08-04 Thread AppleII717
This is rails3 I wrote a fairly complex view helper for one of my model and there is apparently a syntax error since the model did not load. I can't find anywhere where the error would be logged. In the console I pasted the method definitions, but it does not report errors unless called. The

[Rails] Re: FOR or EACH?

2010-08-04 Thread Pale Horse
Marnen Laibow-Koser wrote: Pale Horse wrote: When looping through arrays. What'd you argue to be good (or best) practice? % for something in @lots_of_things % %= something.name % % end % % @lots_of_things.each do |something| % %= something.name % % end % I've read mixed opinions

Re: [Rails] Re: mate -w

2010-08-04 Thread Dave Aronson
Abder-Rahman Ali wrote: I used this command to specify the text editor: $ git config --global core.editor mate -w How can I remove this configuration as I'm getting this error: error: cannot run mate -w: No such file or directory Just a wild guess here: does realize that the -w is a

[Rails] Re: FOR or EACH?

2010-08-04 Thread Marnen Laibow-Koser
Pale Horse wrote: [...] I do likewise. To tell you the truth, I don't even remember that the for construct exists until I see it in other people's code. Indeed, and old code at that in my case. I remember it from when briefly I looked into C. The for loop in C is like the for loop in

Re: [Rails] Re: how to deal with gender

2010-08-04 Thread Dave Aronson
On Jul 30, 6:44 am, bingo bob li...@ruby-forum.com wrote: midname1 :string midname2 :string midname3 :string midname4 :string midname5 :string Deignating a particular cardinality just looks kinda wrong to me, tho of course everyone else's mileage is pretty much guaranteed to vary. How

Re: [Rails] Getting Error in browser

2010-08-04 Thread Dave Aronson
On Wed, Aug 4, 2010 at 03:00, Musdev Musdev li...@ruby-forum.com wrote: I get this Error message in my browser  SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression The code in my product.rb file Which of those lines

[Rails] Output haml document tree subfolders to another directory as html files

2010-08-04 Thread rubybox
I building themes with haml for a CMS based on php and zend framework. Although I could implement haml directly into it, I rather use ruby and therefore try to find a solution for this: Go true a complete document tree and all subfolders, these folders contain haml files Then output each haml

[Rails] Re: FOR or EACH?

2010-08-04 Thread Pale Horse
Marnen Laibow-Koser wrote: The for loop in C is like the for loop in BASIC, not the for...in loop in Ruby. Ruby's for...in is like the for...in (or foreach) in Perl, PHP, or recent versions of Java. Despite the use of the same keyword, they're two very different constructs. Best, --

[Rails] Re: Re: mate -w

2010-08-04 Thread Robert Walker
Dave Aronson wrote: Just a wild guess here: does realize that the -w is a parameter, not part of the actual filename? IOW, will it tell the system to try to find a file in your path with the name mate -w (all, but sans quotes)? I've run into similar problems with other programs many times.

[Rails] Re: Re: mate -w

2010-08-04 Thread Robert Walker
Robert Walker wrote: You can just drop the -w. (--wait). This is an option to the mate command line tool to wait for the file to be closed. Using TextMate as an EDITOR requires the use of the --wait option so the Terminal will wait for the file to be closed before returning to a prompt.

[Rails] Re: Re: how to deal with gender

2010-08-04 Thread bingo bob
interestingly enough - that's exactly what I've done. gone with... forename:string midnames:string surname:string midnames seperated by spaces basically, in the vast majority of cases I'd expect 0, 1 or more rarely 2 midnames; pragmatically it just seemed like the right thing to do in this

[Rails] Re: Re: how to deal with gender

2010-08-04 Thread Robert Walker
bingo bob wrote: interestingly enough - that's exactly what I've done. gone with... forename:string midnames:string surname:string midnames seperated by spaces basically, in the vast majority of cases I'd expect 0, 1 or more rarely 2 midnames; pragmatically it just seemed like the

Re: [Rails] Re: Re: how to deal with gender

2010-08-04 Thread Dave Aronson
On Wed, Aug 4, 2010 at 10:18, Robert Walker li...@ruby-forum.com wrote: For more details see: http://en.wikipedia.org/wiki/First_normal_form#Repeating_groups I had considered suggesting going with a complete separate table of names, containing a person_id (or in this use-case, fullname_id),

[Rails] No Output From script/server

2010-08-04 Thread neufelni
Hello, I usually use my Mac for Rails development, but since it's in for service, I have to use Windows now for a couple of days. However, for some reason with Windows, I'm not getting any of the output from the console such as what queries are running. It seems to be outputting any warnings, but

[Rails] validation of drop down menu

2010-08-04 Thread disruptive tech
How best to do this? I have the following code: %= collection_select(:country, :id, @country_list, :id, :country_name, options ={:prompt = -- Select a country --}, :class =country) % How can I ensure that this the is validated correctly? I have tried validates_prescence_of, but does not seem

[Rails] Re: bundler 1.0.0 RC makes me crazy

2010-08-04 Thread Ivan Brykov
Just upgraded to bundler 1.0.0. rc3. Nothing has changed. When can I expect working solution? -- 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] Re: Re: Re: Drop down menu

2010-08-04 Thread Colin Law
On 4 August 2010 14:15, disruptive tech li...@ruby-forum.com wrote: Colin Law wrote: On 4 August 2010 11:10, Colin Law clan...@googlemail.com wrote: the id and country name for each item in @country list?  Doing that UK  Show  Edit  Destroy France  Show  Edit  Destroy Germany  Show  Edit  

[Rails] Re: PDFKit Fork() Function Unimplemented Error - HELP!

2010-08-04 Thread Dylan Mccarthy
Frederick Cheung wrote: On Aug 3, 6:43�pm, Dylan Mccarthy li...@ruby-forum.com wrote: function unimplemented error. The console output is listed below: Ruby on windows doesn't have fork. You might try rewriting the bit that uses kernel.open to use IO.popen instead Fred Great. What file

[Rails] Re: Output haml document tree subfolders to another directory as html files

2010-08-04 Thread Marnen Laibow-Koser
rubybox wrote: I building themes with haml for a CMS based on php and zend framework. Although I could implement haml directly into it, I rather use ruby and therefore try to find a solution for this: Seems like the wrong tool. Why not just use pHaml with the CMS? If not, then perhaps

Re: [Rails] validation of drop down menu

2010-08-04 Thread Colin Law
On 4 August 2010 15:37, disruptive tech li...@ruby-forum.com wrote: How best to do this? I have the following code: %= collection_select(:country, :id, @country_list, :id, :country_name, options ={:prompt = -- Select a country --}, :class =country) % How can I ensure that this the is

[Rails] Re: Re: Re: how to deal with gender

2010-08-04 Thread Robert Walker
Dave Aronson wrote: On Wed, Aug 4, 2010 at 10:18, Robert Walker li...@ruby-forum.com wrote: For more details see: http://en.wikipedia.org/wiki/First_normal_form#Repeating_groups I had considered suggesting going with a complete separate table of names, containing a person_id (or in this

[Rails] Re: :url being ignored or routing problem?

2010-08-04 Thread suzuki
troubleshooting i'm looking at the log, and it seems to me that when i am at the initial page (and surrounding pages), i am in the desired controller. routing appears to be working as expected.  however, when i test my drop-down menu, it appears as though 1) the :url = {:controller = ..

[Rails] Re: How to inject a value in params when testing a helper method

2010-08-04 Thread Marnen Laibow-Koser
Riccardo Tacconi wrote: I what to try this method in a helper class: def moderator_buttons? return true if params[:question_status] == 'HOST_INBOX' return true if params[:question_status] == 'HOST_INBOX_READ' return true if params[:question_status] == 'DELETED' return true

[Rails] Re: Re: Re: how to deal with gender

2010-08-04 Thread Pale Horse
Robert Walker wrote: I definitely agree that there are cases where breaking normalization for other gains is desirable. I just don't completely agree that this is one of those cases. In this case following out to 3NF is beneficial. It would provide for a more flexible and more elegant

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-04 Thread joshmc...@gmail.com
Just to be clear, this is an ajax request correct? I believe your create method is inside your comments controller, if this is true then by default rails will look for views associated to the methods in the comments controller in comments view folder (/ views/comments/some views). You

[Rails] Re: Re: Re: how to deal with gender

2010-08-04 Thread Robert Walker
Pale Horse wrote: I tend to normalise as often as possible, and I do agree with you Robert. But http://c2.com/cgi/wiki?YouArentGonnaNeedIt also raises a very good point. Given that the primary reason for flattening data, that could otherwise be normalized, is for performance optimization

[Rails] Re: Re: Re: how to deal with gender

2010-08-04 Thread Pale Horse
Robert Walker wrote: Pale Horse wrote: I tend to normalise as often as possible, and I do agree with you Robert. But http://c2.com/cgi/wiki?YouArentGonnaNeedIt also raises a very good point. Given that the primary reason for flattening data, that could otherwise be normalized, is for

[Rails] Re: where do you find load errors in view helper?

2010-08-04 Thread AppleII717
Forget it I not only had the module name misspelled, I forgot the _helper in the file name when I rewrote the helper. On Aug 4, 8:44 am, AppleII717 sa...@mac.com wrote: This is rails3 I wrote a fairly complex view helper for one of my model and there is apparently a syntax error since the

[Rails] Re: How to inject a value in params when testing a helper method

2010-08-04 Thread Frederick Cheung
On Aug 4, 4:09 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: No you don't.  Your helpers don't have access to params, since they live in the view layer.  You'll need to pass params[:question_status] in as an @instance variable. They do - ActionView::Base delegates the params method

[Rails] Re: :url being ignored or routing problem?

2010-08-04 Thread Frederick Cheung
On Aug 4, 4:08 pm, suzuki elle.on.ra...@gmail.com wrote: script type=text/javascript //![CDATA[ new Form.Element.Observer('type_selection', 0.5, function(element, value) {new Ajax.Updater('page_selection', '/admin/assets/set_pages', {asynchronous:true, evalScripts:true,

[Rails] Re: validation of drop down menu

2010-08-04 Thread disruptive tech
Thanks Colin, The development log looks like its going to be useful in the future. This is what I get for the country: country={id=6}, so it looks like a value has been selected, but the validation still fails... Colin Law wrote: On 4 August 2010 15:37, disruptive tech li...@ruby-forum.com

[Rails] Re: validation of drop down menu

2010-08-04 Thread disruptive tech
surely something seems amiss in the drop down control?? -- 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-t...@googlegroups.com. To unsubscribe from

[Rails] Re: Rails 2.3.8 and form_tag usage

2010-08-04 Thread crashbangboom
Thanks Colin... The Unkown Action error in my original post is all the error I get...sorry f.select is not an option in 'form_for'...I tried that...! On Aug 4, 1:59 am, Colin Law clan...@googlemail.com wrote: On 3 August 2010 23:04, crashbangboom crashbangb...@gmail.com wrote: I have just

[Rails] Re: Getting Error in browser

2010-08-04 Thread Musdev Musdev
Dave Aronson wrote: On Wed, Aug 4, 2010 at 03:00, Musdev Musdev li...@ruby-forum.com wrote: I get this Error message in my browser �SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression The code in my product.rb

[Rails] Re: How to inject a value in params when testing a helper method

2010-08-04 Thread Marnen Laibow-Koser
Frederick Cheung wrote: On Aug 4, 4:09�pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: No you don't. �Your helpers don't have access to params, since they live in the view layer. �You'll need to pass params[:question_status] in as an @instance variable. They do - ActionView::Base

[Rails] Re: Rails 2.3.8 and form_tag usage

2010-08-04 Thread Marnen Laibow-Koser
crashbangboom wrote: [...] f.select is not an option in 'form_for'...I tried that...! Sure it is. If you're getting errors, fix the errors. If you can't do that, share them with the list. But f.select should absolutely work. Best, -- Marnen Laibow-Koser http://www.marnen.org

[Rails] Re: how to configure rails to use mysql by default (not sqlite3)

2010-08-04 Thread Marnen Laibow-Koser
Robert Walker wrote: [...] I'm not completely sure, but I don't think SQLite is installed on Mac OS X unless Xcode developer tools are installed. I don't have a Mac without developer tools handy to check, but I am 99% certain that you are wrong. SQLite is used by the operating system's

Re: [Rails] Re: validation of drop down menu

2010-08-04 Thread Hassan Schroeder
On Wed, Aug 4, 2010 at 8:51 AM, disruptive tech li...@ruby-forum.com wrote: surely something seems amiss in the drop down control?? Why would you think that if you can see the country id being passed into the controller? Look at your controller code. Use ruby-debug as suggested, or add some

[Rails] Re: Rails3 Engines (mountable apps)...

2010-08-04 Thread H.J. Blok
Samuel Kadolph wrote: From the code you posted, I don't see a problem. I would suggest following the structure of each framework and how they use Railties. # lib/my_engine.rb require 'active_support' module MyEngine extend ActiveSupport::Autoload autoload :MyClass autoload

[Rails] From RailsConf: New Open Source Gems to manage large Rails eco-systems

2010-08-04 Thread Jonathan Palley
Dear All - At the end of our RailsConf Speech on how we built a maintainable yet complex rails system (slides here: http://en.oreilly.com/rails2010/public/schedule/detail/14302), there was a large demand for us to open source our methods. As such, we are pleased to announce eco_apps 0.1.

[Rails] Re: Getting Error in browser

2010-08-04 Thread Ar Chron
Musdev Musdev wrote: Showing app/views/products/index.html.erb where line #6 raised: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each Extracted source (around line #6): 3: 4: table 5: 6: %

[Rails] Re: Ruby on Rails Developer Needed!!!

2010-08-04 Thread Matt Jones
On Aug 3, 6:30 pm, sergio longoria sergio.longoria...@gmail.com wrote: Project Length:  12 Months Location of Project:  Costa Mesa, CA Start Date:  Immediatley.  Looking to possibly hire over phone interview Designs, develops, and implements web-based Java applications to support business

[Rails] Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Sam Ward
Hello all, I'm a bit of a Nooby on Rails (is that a new joke?) as well as a Ruby Nooby and I've been trying all day to get to the bottom of an error. I promise I have tried everything but I've started going round in circles and deleting large chunks of code so it's probably time to call in the

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-04 Thread Neil Bye
Joshua Mckinney wrote: Just to be clear, this is an ajax request correct? TRUE I believe your create method is inside your comments controller, TRUE You could try to use the render method to specify the location of the view like (i have not tried this with an ajax request): render

[Rails] Rails is slow to load

2010-08-04 Thread Eric Yen
Hi, I was just wondering if this was normal or not. I was running ruby 1.8.7 with rails 3 - rc. (Currently trying 1.9.2- rc2 but the same problem) It takes rails a while to load. (a while as in 10-15 seconds) It will take a while before I can use the console , or before running a test or

[Rails] Re: Rails is slow to load

2010-08-04 Thread Fernando Perez
This doesn't seem normal to me when I watch some screencasts. If this is not normal behaviour, how can I figure out the source of the problem? Maybe they edited their videos to prevent wasting time watching rails load? -- Posted via http://www.ruby-forum.com/. -- You received this message

Re: [Rails] Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Colin Law
On 4 August 2010 18:44, Sam Ward li...@ruby-forum.com wrote: Hello all, I'm a bit of a Nooby on Rails (is that a new joke?) as well as a Ruby Nooby and I've been trying all day to get to the bottom of an error.  I promise I have tried everything but I've started going round in circles and

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Sam Ward
Colin Law wrote: On 4 August 2010 18:44, Sam Ward li...@ruby-forum.com wrote: words starting with Tra...) Colin Oh no! Wow, it's going to be fun to unpick all that... transaction is probably the most used word in my entire project! Thanks Colin, at least I can direct my efforts into

[Rails] Re: Rails is slow to load

2010-08-04 Thread Eric Yen
That did cross my mind, but I was just wondering though. Mostly because it didn't look as though the transition from running the command to the actual test running wasn't edited. But oh well. On Aug 4, 2:54 pm, Fernando Perez li...@ruby-forum.com wrote: This doesn't seem normal to me when I

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Marnen Laibow-Koser
Sam Ward wrote: Colin Law wrote: On 4 August 2010 18:44, Sam Ward li...@ruby-forum.com wrote: words starting with Tra...) Colin Oh no! Wow, it's going to be fun to unpick all that... transaction is probably the most used word in my entire project! Well, this is where your automated

Re: [Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Colin Law
On 4 August 2010 20:12, Sam Ward li...@ruby-forum.com wrote: Colin Law wrote: On 4 August 2010 18:44, Sam Ward li...@ruby-forum.com wrote: words starting with Tra...) Colin Oh no!  Wow, it's going to be fun to unpick all that... transaction is probably the most used word in my entire

[Rails] Re: Persistent error - wrong number of arguments (1 for 0)

2010-08-04 Thread Ar Chron
Sam Ward wrote: Colin Law wrote: On 4 August 2010 18:44, Sam Ward li...@ruby-forum.com wrote: words starting with Tra...) Colin Oh no! Wow, it's going to be fun to unpick all that... transaction is probably the most used word in my entire project! Thanks Colin, at least I can

[Rails] [JOB] Two Ruby Freelancers, NYC location preferred

2010-08-04 Thread Ryan
Ruby Developer for Readability Project ReadFeed is working on a content aggregation engine with built-in curation algorithm. We are focused on longer-form content rather than RSS specifically, with an older and more sophisticated audience focus (i.e. Economist or NY Times readers). ReadFeed is

[Rails] Re: Juggernaut Rails 3

2010-08-04 Thread Michael Schuerig
On Wednesday 04 August 2010, Peter De Berdt wrote: Why not fork the repository on github, dive into the code, fix the incompatibilities (also a good exercise on getting familiar with Rails 3 and Railties) and donate back to the community? I haven't looked at the juggernaut code in ages, even

[Rails] JOB

2010-08-04 Thread Megan
Ruby on Rails Front- End Engineer in San Francisco, CA Please apply via: http://hire.jobvite.com/j/?cj=ocbhVfwjs=Another_Source VerticalResponse, Inc is a leading provider of self-service email and direct mail solutions. We’ve been recognized as one of the top 100 best places to work in the bay

[Rails] JOB: Ruby on Rails Front- End Engineer in San Francisco, CA

2010-08-04 Thread Megan
Ruby on Rails Front- End Engineer in San Francisco, CA Please apply via: http://hire.jobvite.com/j/?cj=ocbhVfwjs=Another_Source VerticalResponse, Inc is a leading provider of self-service email and direct mail solutions. We’ve been recognized as one of the top 100 best places to work in the bay

[Rails] Re: Rails3-beta4: Calling to_json on an ActiveRecord::Relation causes an error

2010-08-04 Thread wprater
Thanks, that worked for me. I'm not able to upgrade to RC1 quite yet. Cheers, -Will On Aug 3, 3:20 am, Huet h...@huetbartels.com wrote: Hi All, I have had this problem with Rails 3 and 1.9.1. The fix for this error is to add  to_a to the json call. render :json = {:top =

[Rails] CarrierWave: 1 uploader for multiple file types

2010-08-04 Thread Chris Sass
I am using the carrierwave to upload files to a rails project. Right now it works fine for uploading images but want to check if the file is an image before attempting to resize it to avoid errors. What I'm having trouble with is grabbing the filename of the current file it's trying to upload.

[Rails] How to apply an application template on an existing Rails 3 app?

2010-08-04 Thread slava
Hello, I want to run a template on an a Rails 3 app after it has already been created. Is there a command for that? thanks -- 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: mate -w

2010-08-04 Thread Abder-Rahman Ali
Thanks a lot robert4723, this worked just fine. -- 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-t...@googlegroups.com. To unsubscribe from this

Re: [Rails] [JOB] Two Ruby Freelancers, NYC location preferred

2010-08-04 Thread kannav rajeev
anyone from Asian Region may work for you ? On Thu, Aug 5, 2010 at 12:17 AM, Ryan ryan...@gmail.com wrote: Ruby Developer for Readability Project ReadFeed is working on a content aggregation engine with built-in curation algorithm. We are focused on longer-form content rather than RSS

  1   2   >