[Rails] Connecting to MSSQL with Ruby on Ubuntu

2011-04-20 Thread DHAMODHARAN N
Hello friends, I tried to connect MSSql with Ruby on Ubuntu follow this linkhttp://lambie.org/2008/02/28/connecting-to-an-mssql-database-from-ruby-on-ubuntu/ its working nice. But i tried with Sequel.connect method connection was established but try to fetching data following error was raised

[Rails] I need help for Gem installation required root password on ubuntu

2011-04-20 Thread hoboy Hoboy
I have install netbeans 7 ide, then install ruby plugin but when I try to install any gem using the netbeans plugins I am asked for root password of ubuntu, how can I find my root password, because when I use the login password, that doesn't work. I am using ubuntu10.10 desktop. -- Posted via

Re: [Rails] Show more feature in Rails app

2011-04-20 Thread Walter Lee Davis
On Apr 19, 2011, at 11:33 PM, daze wrote: You know the very common Older posts/Show more link at the bottom of your Facebook news feed? You know, it functions as a way to show more posts or whatever... it generates more content and allows you to scroll down more. I'm kind of surprised there

[Rails] Re: How can I remove bundler from my rails 3 app?

2011-04-20 Thread Frederick Cheung
On Apr 20, 5:55 am, MJW2529 mjwhite2...@yahoo.com wrote: I'm using jruby 1.6.0 and trying to deploy my rails 3 app to Tomcat. When the app loads I get the error stack level too deep as bundler is trying to resolve dependencies.  I've spent hours searching forums in an effort to resolve this

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread rubynewbie
Would appreciate a workaround for this. On Apr 19, 1:58 pm, rubynewbie mohamed.shaf...@gmail.com wrote: Thanks Bryan. I tried this as well as Using a Fiddler as a proxy. But I found that the downloads are being blocked based on the content by the firewall. Generally arbitrary Software

Re: [Rails] Re: do a select from another table within a model

2011-04-20 Thread Frederick Cheung
On 20 Apr 2011, at 00:12, John Merlino li...@ruby-forum.com wrote: It would appear to me that your immediate problem is the line of code I pointed out above. Yeah I got it now. Basically: if self.class.respond_to? will only respond to class methods of the class, not instance

[Rails] Re: Rich text editor?

2011-04-20 Thread tonypm
Correction, just checked and doesn't look like I used a plugin so can't say how good plugin is! On Apr 20, 8:24 am, tonypm tonypmar...@hotmail.com wrote: I have used CKEditor for some time with no problems,  I have one page with several editor instances and it works fine. There is a rails

Re: [Rails] Re: How can I remove bundler from my rails 3 app?

2011-04-20 Thread Xavier Noria
No, Bundler is not really coupled. Just delete de Gemfile and you're done. Having said that, I'd try to reach the bundler guys with a minimal app the shows your issue. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] No route matches / and rake routes empty

2011-04-20 Thread Colin Law
On 20 April 2011 00:35, Peter Akkies li...@ruby-forum.com wrote: Hello, I am upgrading my Rails application from Rails 2 to Rails 3 and I'm having troubles getting routes.rb to work. I get the following error when I visit my application: [code] Routing Error No route matches / [/code]

[Rails] Re: Unable to install Rails using Gem

2011-04-20 Thread rubynewbie
On Apr 16, 1:48 am, Bryan Crossland bacrossl...@gmail.com wrote: On Fri, Apr 15, 2011 at 5:18 AM, Shafeeq mohamed.shaf...@gmail.com wrote: On Apr 14, 4:46 pm, Michael Pavling pavl...@gmail.com wrote: On 14 April 2011 12:30, Shafeeq mohamed.shaf...@gmail.com wrote: The question is

Re: [Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On 19 Apr 2011, at 23:47, Neil Bye li...@ruby-forum.com wrote: Frederick Cheung wrote in post #993841: On Apr 19, 8:39pm, Neil Bye li...@ruby-forum.com wrote: Tim Shaffer wrote in post #993815: sounds to me like params[:id] isn't set. Fred Not sure what you mean. How would I set

Re: [Rails] Composite index via command line migration, different behaviour in file

2011-04-20 Thread Frederick Cheung
On 19 Apr 2011, at 22:13, Federico federico.rot...@gmail.com wrote: Hello everybody, I have a class like this: class Foos ActiveRecord::Migration def self.up create_table :foos,:id = false, do |t| t.references :table1 t.references :table2 t.timestamps end end

Re: [Rails] Re: my app ignore default_locale

2011-04-20 Thread Frederick Cheung
On 20 Apr 2011, at 05:15, iEmpire razor@gmail.com wrote: If I run the app via `rails server` everything is ok... Did you restart passenger (by touching your_app/tmp/restart.txt) after making the change Fred On Apr 19, 10:20 pm, iEmpire razor@gmail.com wrote: In application.rb i

Re: [Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread Frederick Cheung
On 20 Apr 2011, at 08:25, rubynewbie mohamed.shaf...@gmail.com wrote: Would appreciate a workaround for this. Do the install on a non hobbled computer and then copy the gems across ? (rubygems stashes a copy of the .gem files somewhere if my memory is correct). You could also run gem

[Rails] Barry Flower is out of the office

2011-04-20 Thread Barry Flower
I will be out of the office starting 20/04/2011 and will not return until 28/04/2011. Please contact Brad Parsons as my delegate on +612 8254 1557 or +61 (0) 419 757 068 or if urgent I can be contacted on +61 (0) 439 467 971 Unless otherwise stated, this email is confidential. If received in

Re: [Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-20 Thread Frederick Cheung
On 19 Apr 2011, at 11:30, johnnybutler7 johnnybutl...@gmail.com wrote: Aha thanks, i knew it would be something silly. The docs do suggest adding the gemfile.lock to your repository but based on this evidence thats not a good idea. I will need to find out how to manage this when deploying,

Re: [Rails] Form's and Actions.

2011-04-20 Thread Frederick Cheung
On 19 Apr 2011, at 07:52, Niklas Nson niklasn...@meantime.se wrote: Have the following form: %= simple_form_for @user, :as = :user, :action = edit_notification do |f| -% %= f.input :email % %= f.input :email_alerts % %= f.input :email_summarize %

[Rails] sqlite db adding garbage

2011-04-20 Thread Anush J.
Hello guys After figuring out a way to load my db with info scraped of from a web page, the data on db is appended with --- \n - these characters. I'm not sure what the problem is.. I did change my editor to xcode. I have attached my app's - migration file - the method that is called to populate

[Rails] Re: sqlite db adding garbage

2011-04-20 Thread Frederick Cheung
On Apr 20, 9:18 am, Anush J. li...@ruby-forum.com wrote: Hello guys After figuring out a way to load my db with info scraped of from a web page, the data on db is appended with --- \n - these characters. I'm not sure what the problem is.. I did change my editor to xcode. I have attached my

[Rails] Re: Re: Couldn't find Comment without an ID

2011-04-20 Thread Neil Bye
%= form_for :subcomment, :remote = true, :url = user_subcomments_path(@user) do |form| % %= form.text_field :body % p%= submit_tag 'Comment' %/p % end % comment_subcomments_path(@comment) (assuming @comment is what the user wants to comment on) rather than

[Rails] Re: my app ignore default_locale

2011-04-20 Thread iEmpire
Yes. Also I tried to run my app on another server with simmilar configuration, but no result. On Apr 20, 11:42 am, Frederick Cheung frederick.che...@gmail.com wrote: On 20 Apr 2011, at 05:15, iEmpire razor@gmail.com wrote: If I run the app via `rails server` everything is ok... Did you

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On Apr 20, 10:40 am, Neil Bye li...@ruby-forum.com wrote: %= form_for :subcomment, :remote = true, :url = user_subcomments_path(@user) do |form| %           %= form.text_field :body %         p%= submit_tag  'Comment' %/p         % end % comment_subcomments_path(@comment) (assuming

[Rails] Omniauth facebook authentication failure

2011-04-20 Thread Eugene Idan
I am using devise and omniauth for authentication. Wherever i click on the facebook login button i get this warning msg. ** warning: peer certificate won't be verified in this SSL session ** But now i get this error

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread rubynewbie
On Apr 20, 12:46 pm, Frederick Cheung frederick.che...@gmail.com wrote: On 20 Apr 2011, at 08:25, rubynewbie mohamed.shaf...@gmail.com wrote: Would appreciate a workaround for this. Do the install on a non hobbled computer and then copy the gems across ? Do i have to locate the gem files

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Neil Bye
have you tried form_for [@comment, :subcomment] ? This will make sure that the http method etc is right for creating a new comment Fred I now have: %= form_for [@comment, :subcomment], :remote = true, :url = comment_subcomments_path(@comment) do |form| % %= form.text_field :body

[Rails] Rails and mod_rewrite

2011-04-20 Thread Moonkey Hay
Hi, We've recently built a CMS app that will host quite a few sites, the sites can currently be accessed as follows: example.com/siteone/home example.com/sitetwo/home I've created an Apache vhost to handle 'siteone.com', pointed it to the 'public' folder of the app and it uses the following

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On Apr 20, 11:44 am, Neil Bye li...@ruby-forum.com wrote: have you tried form_for [@comment, :subcomment] ? This will make sure that the http method etc is right for creating a new comment Fred I now have: %= form_for [@comment, :subcomment], :remote = true, :url =

[Rails] ActiveMerchant with Amazon's FPS

2011-04-20 Thread News Aanad
Hi, I want to integrate Amazon's FPS service using Activemerchant. I want to know that activemerchant support that? and if yes, then can you please suggest any site to integrate Amazon's FPS? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] rails new project

2011-04-20 Thread davit
Hi, I have a weird problem that i could not understand. When i write `rails new project` on the terminal it puts me help of rails command. * i use mac osx * ruby works well * gem works well * i uninstalled rails gem and installed again As you see: Mehmet-Davuts-MacBook-Pro:Desktop davit$

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread Frederick Cheung
On Apr 20, 11:41 am, rubynewbie mohamed.shaf...@gmail.com wrote: On Apr 20, 12:46 pm, Frederick Cheung frederick.che...@gmail.com wrote: On 20 Apr 2011, at 08:25, rubynewbie mohamed.shaf...@gmail.com wrote: Would appreciate a workaround for this. Do the install on a non hobbled

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Neil Bye
Frederick Cheung wrote in post #993985: On Apr 20, 11:44am, Neil Bye li...@ruby-forum.com wrote: %= form.text_field :body % % end % But sill get the No route matches {:controller=subcomments} Sorry, that was wrong - it should be form_for [@comment, Subcomment.new], you don't need the

Re: [Rails] Unable to find out proper document to integrating Salesforce with Rails

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 12:41 AM, sreehari sreehari0...@gmail.com wrote: Hi, I want to use salesforce with my rails3 project. I tried http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_Toolkit_for_Ruby documentation. But i am getting so many errors. It is

Re: [Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 2:14 AM, cipher_neo l33...@gmail.com wrote: No, there is only the .js.erb file mentioned above. My public javascripts directory doesn't contain that file. The thing is that it doesn't always crash, it seems to be very random. I am so lost as to the cause, but I

Re: [Rails] Ruby-protobuff uses which version of GDP

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 5:20 AM, Renuka Patil renuka.pati...@gmail.comwrote: How to know which GDP version is used by ruby-protobuff? Does it support latest version of GDP? According to ruby-protobuf READ.txt everything you need is already included so I don't understand your question. Please

Re: [Rails] Re: How to change the url (from localhostL:3000) to (example.com)

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 10:57 AM, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 19, 4:09 am, Alexander cutal...@gmail.com wrote: Open your /etc/hosts file in Linux. Windows is the same hosts file under some other directory. Any how puts the next line in the file 127.0.0.1

[Rails] Re: Unable to find out proper document to integrating Salesforce with Rails

2011-04-20 Thread sreehari
Thank you so much for your reply. Now I'll try with rails2.3.8 On Apr 20, 5:36 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Tue, Apr 19, 2011 at 12:41 AM, sreehari sreehari0...@gmail.com wrote:  Hi,      I want to use salesforce with my rails3 project. I tried

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
The development log file simply stops tailing... the last output lines are always something like: Started GET /javascripts/products.js for 89.100.131.129 at 2011-04-18 15:23:49 +0100 Processing by JavascriptsController#products as JS with no output after it. In the windows event viewer at

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
another thing... it seems to happen a lot when accessing the application with multiple simultaneous clients this may not be the cause, but might be a hint On Apr 20, 2:11 pm, cipher_neo l33...@gmail.com wrote: The development log file simply stops tailing... the last output lines are

Re: [Rails] Re: how to handle session with external input?

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 4:19 PM, frankblizzard tmaxim...@googlemail.comwrote: Thanks Bryan, sure this wouldn't be a problem. But isn't a session connected to the browser in some way. I think I dont understand the whole session, authenticity, forgery topic in rails yet. It uses cookies to

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On Apr 20, 12:46 pm, Neil Bye li...@ruby-forum.com wrote: def create     @comment = Comment.find(params[:id])     @comment.subcomments.create( :comment_id = @comment.id , :body = params[:subcomment][:body])     render :update do |page|       page.reload     end   end _comment.html.erb  

[Rails] Cannot get progress bars to work w/ Apache Progress Module

2011-04-20 Thread Clem Rock
I am following this screencast http://railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html as well as comparing this against all the other rails Apache Progress Module progress bar examples and I can't figure out why I am always getting a 404 routing error:

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Neil Bye
Frederick Cheung wrote in post #994021: On Apr 20, 12:46pm, Neil Bye li...@ruby-forum.com wrote: _comment.html.erb has , that should be form_for [comment, Subcomment.new] - I had I got there on that but it still says Couldn't find Comment without an ID Neil -- Posted via

[Rails] Re: rails new project

2011-04-20 Thread davit
interestingly, i tried too many asynchron little things like updating removing gems etc. But when i do, `gem update --system` it is working now, my rails new command really creates a new project. On Apr 20, 11:05 am, davit mehmetda...@gmail.com wrote: Hi, I have a weird problem that i could

Re: [Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 8:14 AM, cipher_neo l33...@gmail.com wrote: another thing... it seems to happen a lot when accessing the application with multiple simultaneous clients this may not be the cause, but might be a hint When you installed Ruby on Windows did you use RubyInstaller to

Re: [Rails] Check that my sqlite database populated

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 4:27 PM, Federico federico.rot...@gmail.com wrote: Hello guys, I've made a very simple application following the footsteps of http://guides.rubyonrails.org/getting_started.html. I managed to insert my objects (i checked the existence of inserted objects through the

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On Apr 20, 2:49 pm, Neil Bye li...@ruby-forum.com wrote: Frederick Cheung wrote in post #994021: On Apr 20, 12:46pm, Neil Bye li...@ruby-forum.com wrote: _comment.html.erb  has , that should be form_for [comment, Subcomment.new] - I had I got there on that but it still says Couldn't

[Rails] Re: Cannot get progress bars to work w/ Apache Progress Module

2011-04-20 Thread Frederick Cheung
On Apr 20, 2:48 pm, Clem Rock li...@ruby-forum.com wrote:     Location /         # enable tracking uploads in /         TrackUploads On     /Location     Location /progress         # enable upload progress reports in /progress         ReportUploads On     /Location You need to tell

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
yes, I used the RubyInstaller to install: ruby 1.9.2p180 (2011-02-18) [i386-mingw32] and I also installed devkit and configured it to embed itself into the above install. On Apr 20, 3:05 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Wed, Apr 20, 2011 at 8:14 AM, cipher_neo

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Frederick Cheung
On Apr 20, 3:33 pm, Neil Bye li...@ruby-forum.com wrote: Frederick Cheung wrote in post #994032: Check the parameters you get in your controller - you'll probably need to use params[:comment_id] rather than params[:id] Fred Tried params[:comment_id] It goes to

Re: [Rails] rake db:create fails

2011-04-20 Thread Bryan Crossland
On Tue, Apr 19, 2011 at 10:24 PM, Darlan Machado li...@ruby-forum.comwrote: Hello folks, I´m here trying to find the way to solve my problem. When i try to run rake db:create or rake db:create:all the process stops and the databases are not created. I change the directives, putting

Re: [Rails] Couldn't find Comment without an ID

2011-04-20 Thread Trevor Oke
On Tue, Apr 19, 2011 at 1:52 PM, Neil Bye li...@ruby-forum.com wrote: Im trying to makee an application that allows subcomments ie comments on comments. The point where I get stuck is finding the comment that is commented on. This is an excerpt from subcomment.rb def create    @comment =

[Rails] Re: Couldn't find Comment without an ID

2011-04-20 Thread Neil Bye
Neil Bye wrote in post #994040: Frederick Cheung wrote in post #994032: Check the parameters you get in your controller - you'll probably need to use params[:comment_id] rather than params[:id] Fred Tried params[:comment_id] It goes to /comments/1/subcomments and says: try {

Re: [Rails] Connecting to MSSQL with Ruby on Ubuntu

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 1:24 AM, DHAMODHARAN N dhams...@gmail.com wrote: Hello friends, I tried to connect MSSql with Ruby on Ubuntu follow this linkhttp://lambie.org/2008/02/28/connecting-to-an-mssql-database-from-ruby-on-ubuntu/ its working nice. But i tried with Sequel.connect

Re: [Rails] I need help for Gem installation required root password on ubuntu

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 1:26 AM, hoboy Hoboy li...@ruby-forum.com wrote: I have install netbeans 7 ide, then install ruby plugin but when I try to install any gem using the netbeans plugins I am asked for root password of ubuntu, how can I find my root password, because when I use the login

Re: [Rails] Re: Unable to install Rails using Gem

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 2:36 AM, rubynewbie mohamed.shaf...@gmail.comwrote: On Apr 16, 1:48 am, Bryan Crossland bacrossl...@gmail.com wrote: On Fri, Apr 15, 2011 at 5:18 AM, Shafeeq mohamed.shaf...@gmail.com wrote: On Apr 14, 4:46 pm, Michael Pavling pavl...@gmail.com wrote: On 14

[Rails] How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread amritpal pathak
I want to enable production enviornment for my appication.The content of database.yml file is as # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: mysql database: amritpal username: root password: 12345 pool: 5 timeout: 5000 #

[Rails] Re: How to change the url (from localhostL:3000) to (example.com)

2011-04-20 Thread amrit pal pathak
On Apr 20, 8:51 am, Bryan Crossland bacrossl...@gmail.com wrote: On Tue, Apr 19, 2011 at 10:57 AM, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 19, 4:09 am, Alexander cutal...@gmail.com wrote: Open your /etc/hosts file in Linux. Windows is the same hosts file under

Re: [Rails] How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread Colin Law
On 20 April 2011 17:21, amritpal pathak amritpalpath...@gmail.com wrote: I want to enable production enviornment for my appication.The  content of database.yml file is as  # SQLite version 3.x #   gem install sqlite3-ruby (not necessary on OS X Leopard) development:   adapter: mysql  

Re: [Rails] Re: How to change the url (from localhostL:3000) to (example.com)

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 11:31 AM, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 20, 8:51 am, Bryan Crossland bacrossl...@gmail.com wrote: On Tue, Apr 19, 2011 at 10:57 AM, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 19, 4:09 am, Alexander

[Rails] Re: rake db:create fails

2011-04-20 Thread amrit pal pathak
Have you mention the database name in dabase.yml file? Regards Amrit pal -- 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

[Rails] Dynamic Select Menu

2011-04-20 Thread igmarin
Hello i have the following issue: I need to use two list in a menu to redirect my users to a different view, This is something like the select of a list in country and state, that when you select the country it will render the states under that selected country, the main difference is that i

Re: [Rails] How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 11:21 AM, amritpal pathak amritpalpath...@gmail.com wrote: I want to enable production enviornment for my appication.The content of database.yml file is as # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter:

[Rails] Full Time Position: Ruby (Rails) Developer (Java Expert a plus) - NYC

2011-04-20 Thread Bryan Zaslow
JBCHoldings and our family of companies (JBCStyle, JBCConnect and Jonathan Beth Consultants) are seeking a full time Ruby (Rails) Developer (Java Script expert a plus). Location: New york City - Midtown Bryant Park Start: Immediately Salary: Commensurate with Experience We are looking for smart,

[Rails] Re: How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread amrit pal pathak
On Apr 20, 1:01 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Wed, Apr 20, 2011 at 11:21 AM, amritpal pathak amritpalpath...@gmail.com wrote: I want to enable production enviornment for my appication.The  content of database.yml file is as  # SQLite version 3.x #  

Re: [Rails] Mac Phusion Passenger Pane not working

2011-04-20 Thread Frederick Cheung
On 20 Apr 2011, at 15:11, Clem Rock li...@ruby-forum.com wrote: I have a feeling that this is something centered around my apache/Passenger configurations but everything seems to check out. Another off the hand problem I'm having, and might be a clue is w/ my Passenger Pane. I installed

Re: [Rails] Re: How to change the url (from localhostL:3000) to (example.com)

2011-04-20 Thread Walter Lee Davis
On Apr 20, 2011, at 12:31 PM, amrit pal pathak wrote: Here you go. Amazing what you find on the Internet these days. http://tinyurl.com/3bp7nsh It tells to run the app on different ports,but i want to run it without giving any port like at example.com That's an implementation detail.

[Rails] I need help: No route matches /RailsApplication3

2011-04-20 Thread hoboy Hoboy
I have create a little app on netbeans 7. This is my first RoR app. when I run it I get the following error. Started GET /RailsApplication3 for 127.0.0.1 at Wed Apr 20 18:33:54 +0200 2011 ActionController::RoutingError (No route matches /RailsApplication3): Rendered

Re: [Rails] Re: How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread Frederick Cheung
On 20 Apr 2011, at 18:22, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 20, 1:01 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Wed, Apr 20, 2011 at 11:21 AM, amritpal pathak amritpalpath...@gmail.com wrote: I want to enable production enviornment for my appication.The

[Rails] Re: Rails 3.0 Internal Server Error - Not Enough Space

2011-04-20 Thread Payal Patel
Max Schubert wrote in post #992663: On Wed, Apr 13, 2011 at 11:37 PM, Payal Patel li...@ruby-forum.com wrote: [2011-04-13 20:27:35] ERROR Errno::ENOMEM: Not enough space Have you checked to make sure the host or virtual machine you are running on has sufficient RAM? ENOMEM could indicate RAM

[Rails] Re: How can I remove bundler from my rails 3 app?

2011-04-20 Thread MJW2529
I've tried running this on Glassfish and got the exact same error, so it must be in the bundler code. I've removed bundler from the app and added the requires to the environment.rb file and did get this running. However, it's obviously not an ideal solution. On Apr 20, 12:13 am, Frederick

Re: [Rails] I need help: No route matches /RailsApplication3

2011-04-20 Thread David Kahn
On Wed, Apr 20, 2011 at 12:54 PM, hoboy Hoboy li...@ruby-forum.com wrote: I have create a little app on netbeans 7. This is my first RoR app. when I run it I get the following error. Started GET /RailsApplication3 for 127.0.0.1 at Wed Apr 20 18:33:54 +0200 2011

Re: [Rails] Re: How can I remove bundler from my rails 3 app?

2011-04-20 Thread Xavier Noria
On Wed, Apr 20, 2011 at 8:07 PM, MJW2529 mjwhite2...@yahoo.com wrote: I've tried running this on Glassfish and got the exact same error, so it must be in the bundler code.  I've removed bundler from the app and added the requires to the environment.rb file and did get this running.  However,

Re: [Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 2:55 AM, Frederick Cheung frederick.che...@gmail.com wrote: On 19 Apr 2011, at 11:30, johnnybutler7 johnnybutl...@gmail.com wrote: Aha thanks, i knew it would be something silly. The docs do suggest adding the gemfile.lock to your repository but based on this

[Rails] Re: I need help: No route matches /RailsApplication3

2011-04-20 Thread hoboy Hoboy
http://localhost.3000/ Welcome aboard You’re riding Ruby on Rails! About your application’s environment Getting started Here’s how to get rolling: 1. Use rails generate to create your models and controllers To see all available options, run it without parameters. 2. Set

Re: [Rails] Re: I need help: No route matches /RailsApplication3

2011-04-20 Thread David Kahn
On Wed, Apr 20, 2011 at 1:53 PM, hoboy Hoboy li...@ruby-forum.com wrote: http://localhost.3000/ Welcome aboard You’re riding Ruby on Rails! About your application’s environment Getting started Here’s how to get rolling: 1. Use rails generate to create your models and controllers

Re: [Rails] Re: I need help: No route matches /RailsApplication3

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 1:53 PM, hoboy Hoboy li...@ruby-forum.com wrote: http://localhost.3000/ Welcome aboard You’re riding Ruby on Rails! About your application’s environment Getting started Here’s how to get rolling: 1. Use rails generate to create your models and controllers

Re: [Rails] Re: I need help: No route matches /RailsApplication3

2011-04-20 Thread David Kahn
On Wed, Apr 20, 2011 at 1:57 PM, Bryan Crossland bacrossl...@gmail.comwrote: On Wed, Apr 20, 2011 at 1:53 PM, hoboy Hoboy li...@ruby-forum.com wrote: http://localhost.3000/ Welcome aboard You’re riding Ruby on Rails! About your application’s environment Getting started Here’s how to get

[Rails] Re: I need help: No route matches /RailsApplication3

2011-04-20 Thread hoboy Hoboy
Thanks guys -- 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] Check that my sqlite database populated

2011-04-20 Thread Federico Rota
Well, when I run .databases i see something like an empty grid clearly indicating that there is no database. I think i should see my rails' databases (the ones resulting populated from rails console as i said before). This is the first time i use sqlite but i think the command is right. I don't

Re: [Rails] Composite index via command line migration, different behaviour in file

2011-04-20 Thread Federico Rota
Thanks Fred, at least I'll stop bouncing my head against the wall trying to make my command work! I'll stick with your solution or mine. Il giorno 20/apr/2011, alle ore 09:39, Frederick Cheung frederick.che...@gmail.com ha scritto: On 19 Apr 2011, at 22:13, Federico

Re: [Rails] Check that my sqlite database populated

2011-04-20 Thread Walter Lee Davis
On Apr 20, 2011, at 3:17 PM, Federico Rota wrote: Well, when I run .databases i see something like an empty grid clearly indicating that there is no database. I think i should see my rails' databases (the ones resulting populated from rails console as i said before). This is the first time

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread Luis Lavena
On Apr 16, 12:20 pm, cipher_neo l33...@gmail.com wrote: sure: Hello, sorry for the late response, didn't monitor this group actively. C:\Windows\System32gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.5) actionpack (3.0.5) activemodel (3.0.5) activerecord (3.0.5)

[Rails] Re: Mac Phusion Passenger Pane not working

2011-04-20 Thread Clem Rock
I wasn't sure exactly which the console log was for the Passenger Pane. I checked all Apache logs as well as the development.log of the project. Frederick Cheung wrote in post #994089: On 20 Apr 2011, at 15:11, Clem Rock li...@ruby-forum.com wrote: I have a feeling that this is something

[Rails] Re: unable to set default_url_options on per environment basis

2011-04-20 Thread charles d
Thanks that worked perfectly On Apr 18, 6:05 am, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 17, 10:16 pm, charles d barryfrombarryvi...@gmail.com wrote: Im trying to set the default_url_options on a per environment basis but nothing is working. I keep getting Missing host

[Rails] Re: Cannot get progress bars to work w/ Apache Progress Module

2011-04-20 Thread Clem Rock
Frederick, Thanks for your help as always. I adding the PassengerEnabled directive inside the location block as such: Location /progress # enable upload progress reports in /progress PassengerEnabled off ReportUploads On /Location I restarted apache and

[Rails] [Rails Plugin\Gem] How to show time, which your plugin spent in rails server log

2011-04-20 Thread sadgb разумовский
Hi. Sorry for my terrible english. When user makes request to your server in log you could see smth like Completed 200 in 134 ms (Views: 12 ms ; ActiveRecord 1ms; Sphinx 0ms) I want my plugin to show information in this line, such Sphinx and Activerecord and Arel do. But after i waist 2 hours on

[Rails] Re: Mac Phusion Passenger Pane not working

2011-04-20 Thread Frederick Cheung
On Apr 20, 9:15 pm, Clem Rock li...@ruby-forum.com wrote: I wasn't sure exactly which the console log was for the Passenger Pane. I checked all Apache logs as well as the development.log of the project. open the console app (/applications/utilities/console) and check the console messages

[Rails] Re: How to show time, which your plugin spent in rails server log

2011-04-20 Thread Frederick Cheung
On Apr 20, 5:44 pm, sadgb разумовский rasum...@gmail.com wrote: Hi. Sorry for my terrible english. When user makes request to your server in log you could see smth like Completed 200 in 134 ms (Views: 12 ms ; ActiveRecord 1ms; Sphinx 0ms) I want my plugin to show information in this line,

[Rails] Re: Ruby On Rails 3 and Webrick

2011-04-20 Thread David F.
I have the same issues above, I've installed Homebrew. Now I cant get it to do the sudo app-get part. I understand that Mac does not have this functionality. What options do I have instead? Thanks for any help. Another noob -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Show more feature in Rails app

2011-04-20 Thread daze
Oh wow thanks! But what's the most up-to-date solution? On Apr 20, 2:38 am, Walter Lee Davis wa...@wdstudio.com wrote: On Apr 19, 2011, at 11:33 PM, daze wrote: You know the very common Older posts/Show more link at the bottom of your Facebook news feed?  You know, it functions as a

Re: [Rails] Re: Show more feature in Rails app

2011-04-20 Thread Walter Lee Davis
On Apr 20, 2011, at 6:11 PM, daze wrote: Oh wow thanks! But what's the most up-to-date solution? On Apr 20, 2:38 am, Walter Lee Davis wa...@wdstudio.com wrote: On Apr 19, 2011, at 11:33 PM, daze wrote: I would go on Github and type in rails endless or rails pageless in the search field,

[Rails] Re: Show more feature in Rails app

2011-04-20 Thread Robert Walker
daze wrote in post #993901: You know the very common Older posts/Show more link at the bottom of your Facebook news feed? You know, it functions as a way to show more posts or whatever... it generates more content and allows you to scroll down more. I'm kind of surprised there isn't a nice

[Rails] Re: Ruby On Rails 3 and Webrick

2011-04-20 Thread Robert Walker
David F. wrote in post #994133: I have the same issues above, I've installed Homebrew. Now I cant get it to do the sudo app-get part. I understand that Mac does not have this functionality. What options do I have instead? Explain this. 1. Did you really mean apt-get instead of app-get. I have

Re: [Rails] ActiveMerchant with Amazon's FPS

2011-04-20 Thread Bryan Crossland
On Wed, Apr 20, 2011 at 6:11 AM, News Aanad news.anan...@gmail.com wrote: Hi, I want to integrate Amazon's FPS service using Activemerchant. I want to know that activemerchant support that? and if yes, then can you please suggest any site to integrate Amazon's FPS? The answer is no it does

[Rails] Re: Show more feature in Rails app

2011-04-20 Thread daze
Okay, but it doesn't have to be AUTOMATIC... I mean Facebook has a very nice show more button at the bottom of its news feed so you only show more if you want to. And I could potentially have an unordered list of hundreds of things so I don't think the div strategy you mentioned would be

[Rails] Re: How can I remove bundler from my rails 3 app?

2011-04-20 Thread MJW2529
Thanks Xaviar. This is very useful since I want to run bundler when I push the code over so as I get the gems installed, but then exclude it in the war file to run under Tomcat. On Apr 20, 11:17 am, Xavier Noria f...@hashref.com wrote: On Wed, Apr 20, 2011 at 8:07 PM, MJW2529

[Rails] GEMFile gem 'mysql2' and mysql version is 4.1.2

2011-04-20 Thread Pepe Sanchez
Hi all I have a Gemfile with this value gem 'mysql2' but when I run this command '$ bundle install' on my host they said that The command bundle install --local seems to be returning mysql2 dependency error now. Unfortunately mysql2 gem requires mysql 5.1+ ( refer:

[Rails]

2011-04-20 Thread Pravin Mishra
HI, Having just installed attribute_fu I'm getting the error ArgumentError in DogsController#new Unknown key(s): attributes, discard_if I assume this is coming from my model has_many parameters :attributes = true, :discard_if = proc { |upload| upload.photo_file_size.nil? I

[Rails] Unknown key(s): attributes, discard_if

2011-04-20 Thread Pravin Mishra
HI, Having just installed attribute_fu I'm getting the error ArgumentError in DogsController#new Unknown key(s): attributes, discard_if I assume this is coming from my model has_many parameters :attributes = true, :discard_if = proc { |upload| upload.photo_file_size.nil? I can

[Rails] Rails 2.3.11 and carrierwave, can't find generator

2011-04-20 Thread sol.manager
I added carrierwave to a 2.3.11 app that I have updated with Bundler. I just tried to use the following: script/generate uploader Avatar The following error is coming back: NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01. Gem.cache called from

  1   2   >