[Rails] Re: How TO deploy A Rails application on GoDaddy

2011-05-03 Thread Eugen Ciur
Link below is your answer: http://www.johnyerhot.com/2008/11/04/deployment-nightmare-godaddy/ I don't think godaddy is good place to deploy rails applications. You will save your time and money if you choose another place to host your application. I use linode, thought that one is a VPS which

Re: [Rails] Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread Colin Law
On 2 May 2011 19:15, Herman Müller li...@ruby-forum.com wrote: Hi there, I'm using mac with snow leopard and ruby on rails in different version. Every html-page from the internet is dispalyed on safari or firefox (4) in the same way/size. But my problem is, that only the pages from my

[Rails] Devise - Authenticate based on IP

2011-05-03 Thread jack koh
How to use devise to authenticate user from login based on their IP address ? -- 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: Rails 3 Crashing On Windows 7

2011-05-03 Thread cipher_neo
I have decided to do away with developing on Windows. I ended up installing Ubuntu to a seperate partition on my machine. It seems to be a lot easier to get rails up and running on it. Thanks for your help On Apr 28, 6:24 am, cipher_neo l33...@gmail.com wrote: I am going to tackle this

[Rails] Re: Upgrading an application to Rails 3

2011-05-03 Thread Hans
Exequiel. That was also my approach but Colin seems to prefer the other approach. Maybe its a question about control. I think your approach gives more control to the uppgrading process than Colins If anything goes wrong using Colins approach then it could be the old code but also the combination

Re: [Rails] Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 08:01, jack koh li...@ruby-forum.com wrote: How to use devise to authenticate user from login based on their IP address ? ?? How do you suggest that an IP address identifies a user? Lend me your PC, and I'll prove it's a bad idea -- You received this message because you are

Re: [Rails] Re: Upgrading an application to Rails 3

2011-05-03 Thread Colin Law
On 3 May 2011 08:58, Hans hans.marmo...@klockholm.se wrote: In addition my controller does not follow the proposed structure that is generated in a rails 3 scaffold with  respond_to do |format|, which will be corrected with Exequiel's approach I do not understand what you are saying here.

[Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread jack koh
I want restrict only certain IPs can to access my App. After authenticate IPs, username and password just allows user to access. -- 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

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 09:09, jack koh li...@ruby-forum.com wrote: I want restrict only certain IPs can to access my App. After authenticate IPs, username and password just allows user to access. That's a very different problem then. The easiest solution may be to use iptables (or similar) on the

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter Hickman
However this assumes that the site is hosted in some place where the firewall is easy to access. This is not always the case and even if it is you really do not want the sysadmin or developer to be having to drop everything just to make some small change to a firewall config (and as any sysadmin

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 09:53, Peter Hickman peterhickman...@googlemail.com wrote: However this assumes that the site is hosted in some place where the firewall is easy to access. What assumes this? Without you quoting anything, we're into the realms of having to guess what bit you're replying to... and

[Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread jack kw
Thank for replying. Michael and Peter Sorry, I've little confusing just now.. due to rushing with my project. Actually I would like to set certain user like admin which is can access from outside [public IPs]. others users only can access within LAN. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Rails 3 with TinyMce

2011-05-03 Thread heithem nouira
Hi, I'm sorry for late and thanks for your help Actually, this is what tinymce should do. But i discarded this issue when i discovered that i m not supposed to display data written with this editor. thanks a lot. On May 3, 4:46 am, Carina Brito carina...@gmail.com wrote: ops:raw get a html

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter Hickman
Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you wouldn't expose your login forms on systems whose IP addresses you don't want logging in for whatever reason. Here you are

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 10:54, Peter Hickman peterhickman...@googlemail.com wrote: Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you wouldn't expose your login forms on systems whose IP

[Rails] Routin Error

2011-05-03 Thread heithem nouira
Hi, i'm working with Rails 3 and ruby 1.9.2 to make a plugin. Things went smoothly until i just added a new controller, view and helpers. Requesting a route to any of the new controller’s actions caused Rails to die with the exception “ActionController::RoutingError (undefined method `sub’ for

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter De Berdt
On 03 May 2011, at 12:05, Michael Pavling wrote: On 3 May 2011 10:54, Peter Hickman peterhickman...@googlemail.com wrote: Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you

Re: [Rails] Re: How TO deploy A Rails application on GoDaddy

2011-05-03 Thread rajeevsharma86
Thanks but there is no hope to get it working :( On Tue, May 3, 2011 at 12:08 PM, Eugen Ciur li...@ruby-forum.com wrote: Link below is your answer: http://www.johnyerhot.com/2008/11/04/deployment-nightmare-godaddy/ I don't think godaddy is good place to deploy rails applications. You will

[Rails] rake migrate error: SQLexception

2011-05-03 Thread Kelly Pfaff
When i try to migrate my db, it gives the following error: ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! SQLite3::SQLException: no such table: users: SELECT * FROM users

Re: [Rails] rake migrate error: SQLexception

2011-05-03 Thread Michael Pavling
On 3 May 2011 13:44, Kelly Pfaff li...@ruby-forum.com wrote: When i try to migrate my db, it gives the following error: ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! SQLite3::SQLException: no such table: users: SELECT * FROM users

Re: [Rails] rake migrate error: SQLexception

2011-05-03 Thread seeni khan
Hi kelly, Kindly ensure that you are created the model named User before migration done..It seems to be you are not created the 'user' table. On Tue, May 3, 2011 at 6:14 PM, Kelly Pfaff li...@ruby-forum.com wrote: When i try to migrate my db, it gives the following error: ** Invoke db:migrate

[Rails] Re: rake migrate error: SQLexception

2011-05-03 Thread Kelly Pfaff
Michael Pavling wrote in post #996409: Any chance that at line 6 of config/initializers/task_scheduler.rb you access Users before the users table has been created? If so, what happens if you comment that line while you migrate to create the table? You sir, saved my day. I should have looked

Re: [Rails] Re: rake migrate error: SQLexception

2011-05-03 Thread Michael Pavling
On 3 May 2011 14:00, Kelly Pfaff li...@ruby-forum.com wrote: You sir, saved my day. I should have looked more closely into the errors. Thank you very much. No worries... they can be a pain to decipher sometimes - I've just been banging my head against a bug myself which was waving itself in my

[Rails] Re: Downloaded Ruby, where do I extract it to start?

2011-05-03 Thread fredrated
This whole thing seems like some kind of nightmare to me. I can't install rvm without Ruby already installed. Then rvm is useless because I don't need more than 1 version of ruby. l guess I should mention that I am a linux newbie hoping to abandon Windos. So back to the original question: since

Re: [Rails] Re: Downloaded Ruby, where do I extract it to start?

2011-05-03 Thread Paul
I completely sympathize with how hard it is to get linux configurations straightened out. It can be a nightmare. The rvm does have two uses beyond switching quickly between two versions of ruby: It makes it trivial to upgrade your ruby when a new version comes out, and it takes some of the

Re: [Rails] Re: Downloaded Ruby, where do I extract it to start?

2011-05-03 Thread Walter Davis
On May 3, 2011, at 11:05 AM, Paul wrote: The rvm does have two uses beyond switching quickly between two versions of ruby: It makes it trivial to upgrade your ruby when a new version comes out, and it takes some of the configuration problems out of linux, so it should make it easier to

[Rails] Re: Routin Error

2011-05-03 Thread Me
Might try a symbol for admin. Also is your controller is Admin::TransfersController? -- 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,

Re: [Rails] Re: Downloaded Ruby, where do I extract it to start?

2011-05-03 Thread Hassan Schroeder
On Tue, May 3, 2011 at 7:41 AM, fredrated fr...@abag.ca.gov wrote: So back to the original question: since the extract saved files that What extract? You've never actually described what you did to try to install ruby -- have all been having a go is not too precise... I'd say you'd be well off

[Rails] Re: Authentication recommendations?

2011-05-03 Thread michael_teter
Thanks to all for the great information! -- 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

[Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread Herman Müller
Hi Thomas, unbelievable, that's it!! Thank you very much!! I musst be more than one year ago when I pressed cmd+. Regs Hermann Thomas M. wrote in post #996272: did you ever press option-minus or option+plus for change the sizes in firefox? because firefox remembers this... just a

Re: [Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread Colin Law
On 3 May 2011 17:33, Herman Müller li...@ruby-forum.com wrote: Hi Thomas, unbelievable, that's it!! Thank you very much!! I musst be more than one year ago when I pressed cmd+. So that only affected your rails apps and not other websites? Strange, almost unbelievable in fact. Colin

[Rails] Re: Rails 3.1 engines + assets

2011-05-03 Thread Tobias Schlottke
Would be interested too :) Did you find out anything? Best, Tobias On 26 Apr., 11:53, Tomas Celizna tomas.celi...@gmail.com wrote: Hello all, does anyone happen to know, how do I serve (Rails 3.1) engine's assets with the new SASS+CoffeeScript integration? Thank you, Tomas -- You

Re: [Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread Walter Davis
On May 3, 2011, at 12:40 PM, Colin Law wrote: On 3 May 2011 17:33, Herman Müller li...@ruby-forum.com wrote: Hi Thomas, unbelievable, that's it!! Thank you very much!! I musst be more than one year ago when I pressed cmd+. So that only affected your rails apps and not other websites?

Re: [Rails] How TO deploy A Rails application on GoDaddy

2011-05-03 Thread Frederick Cheung
On 3 May 2011, at 06:26, rajeevkannav rajeevsharm...@gmail.com wrote: Hello All I am new to deployment an rails application . i purchased web hosting plan on go-daddy. and did the following stpes 1. Log in to the GoDaddy Hosting Control Center 2. Make sure Java is disabled (under

Re: [Rails] How TO deploy A Rails application on GoDaddy

2011-05-03 Thread David Kahn
On Tue, May 3, 2011 at 12:26 AM, rajeevkannav rajeevsharm...@gmail.comwrote: Hello All I am new to deployment an rails application . i purchased web hosting plan on go-daddy. and did the following stpes I'm sure you dont want to hear this and forgive me if someone else already mentioned,

[Rails] Re: Upgrading an application to Rails 3

2011-05-03 Thread exequiel
Actually I didn't have many problems with Rails (if a remember well), just with some methods, like link_to, response_to, etc and many warnings, they were catched doing tests. The files into config directory are very different between RoR v1.2.3 and v3.0.0, it was using fastcgi and the pagination

[Rails] Re: Re: Re: Re: Re: Re: Form parameters not passing to controller

2011-05-03 Thread David Mr.
So are they just local variables within that method? Can you do a global search for setax and make sure they are not defined elsewhere also. The only way I can see you getting the effect you are seeing in the debugger is if there is more than one var of that name and the debugger is showing

Re: [Rails] Rails 3 upgraded form validation issue

2011-05-03 Thread Chris Mear
On 9 October 2010 01:18, Rafael Szuminski raf...@gmail.com wrote: H All, I have run into a very interesting issue. On one of my apps, after upgrading from 2.3 to 3.0, the form validation started to escape html. Normally what should happen when you submit a form and one of the fields fails

[Rails] Other way instead of this evil eval?

2011-05-03 Thread David Kahn
I am trying to do this, where associated_record_type is always of the name of a model, passed to the method: record = eval(#{associated_record_type}).find_by_id(associated_record_id) Is there a way to do this dynamically without using an eval? -- You received this message because you are

Re: [Rails] Other way instead of this evil eval?

2011-05-03 Thread Michael Pavling
On 3 May 2011 20:26, David Kahn d...@structuralartistry.com wrote: record =  eval(#{associated_record_type}).find_by_id(associated_record_id) Is there a way to do this dynamically without using an eval? record =  associated_record_type.classify.constantize.find_by_id(associated_record_id) --

Re: [Rails] Other way instead of this evil eval?

2011-05-03 Thread Michael Pavling
On 3 May 2011 20:30, Michael Pavling pavl...@gmail.com wrote: On 3 May 2011 20:26, David Kahn d...@structuralartistry.com wrote: record =  eval(#{associated_record_type}).find_by_id(associated_record_id) Is there a way to do this dynamically without using an eval? record = 

Re: [Rails] Other way instead of this evil eval?

2011-05-03 Thread David Kahn
On Tue, May 3, 2011 at 2:33 PM, Michael Pavling pavl...@gmail.com wrote: On 3 May 2011 20:30, Michael Pavling pavl...@gmail.com wrote: On 3 May 2011 20:26, David Kahn d...@structuralartistry.com wrote: record = eval(#{associated_record_type}).find_by_id(associated_record_id) Is there a

Re: [Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread Colin Law
On 3 May 2011 17:58, Walter Davis wa...@wdstudio.com wrote: On May 3, 2011, at 12:40 PM, Colin Law wrote: On 3 May 2011 17:33, Herman Müller li...@ruby-forum.com wrote: Hi Thomas, unbelievable, that's it!! Thank you very much!! I musst be more than one year ago when I pressed cmd+.

[Rails] Re: Sinatra - Ajax Web Form Problems

2011-05-03 Thread Dain B.
Hey Kyle, thanks for the tip but that didn't seem to work. When onSuccess it doesn't work, nothing happens when I hit the submit button when I use chrome or firefox. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: How TO deploy A Rails application on GoDaddy

2011-05-03 Thread Robert Walker
Kannav R. wrote in post #996345: I am new to deployment an rails application . i purchased web hosting plan on go-daddy. and did the following stpes 1. Log in to the GoDaddy Hosting Control Center 2. Make sure Java is disabled (under Language Options). If it is enabled, you can't deploy a

[Rails] Php to Ruby compilation software

2011-05-03 Thread femto Zheng
Hello, we just researched a Php to Ruby compilation software, because our client has some Php Project, and that can accelarates their transition to rails, and there are a lot of php projects out there, both open sourced and close sourced, so this software may be helpful to accelarates the changes

Re: [Rails] Php to Ruby compilation software

2011-05-03 Thread Tim Shaffer
That's probably the ugliest ruby code I've ever seen. -- 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

[Rails] Re: Php to Ruby compilation software

2011-05-03 Thread femto
Yes,it's self compiled, why using _VARS, and not directly local_variables? because php has some weird var logic, like say $a =1; echo $GLOBALS[a]; //this is 1, it automaticly affects entry in $GLOBALS, and in the opposite direction, $GLOBALS[a]=1; echo $a; //now $a is 1, which is really

[Rails] Re: Php to Ruby compilation software

2011-05-03 Thread femto
and $a=null; $a[db][config]=1; //all of a sudden $a contains something, while in ruby it NullException: throws undefined method `[]' for nil:NilClass //in php is quite valid, and used everywhere, which is unfornate. On May 4, 9:22 am, femto femto...@gmail.com wrote: Yes,it's self compiled, why

Re: [Rails] Re: Php to Ruby compilation software

2011-05-03 Thread Rodrigo Mendonça
it's not a good idea 2011/5/3 femto femto...@gmail.com and $a=null; $a[db][config]=1; //all of a sudden $a contains something, while in ruby it NullException: throws undefined method `[]' for nil:NilClass //in php is quite valid, and used everywhere, which is unfornate. On May 4, 9:22

Re: [Rails] Re: Mac Firefox renders localhost rails pages smaller then safari or other browser

2011-05-03 Thread UNIXgod
if you need to reset it you can simply use cmd-0 to reset to default. They are all together 0 - + right next to each other. I'm on ff4 and it looks like they implemented = so there is no need to shift for + and here it's control ( 0, -, +/= ) to control the browser's text accessibility option.

[Rails] web-based retail Point Of Sale

2011-05-03 Thread News Aanad
Hi, I am going to make web-based retail point of sale in rails. But I don't know from where i should start my application. Can anybody suggest me any site or any documentation from which I can get idea to make my application. Your help will appreciate me. Thank you. -- You received this message

[Rails] Why do I sometimes have to refresh the page manually after an AJAX form submission?

2011-05-03 Thread Tom DeHart
When I do remote form submits through jQuery .submit() why do I sometimes have to refresh the page manually to see the results? My jQuery handler is very simple: $(#vote_yes).click(function() { $(#approval).val(true) $(.edit_vote).submit() }); And the link that leverages