[Rails] Re: save but don' redirect,

2012-02-05 Thread Soichi Ishida
Thanks for the reply. Like you pointed out, I have been misunderstanding that redirecting was due to 'new' action. It's rather 'create' action. Right now I am trying to develop jQuery ajax that updates a part of the page. So I tried in script controller, def create @script =

[Rails] Re: Forms do not display in browser. What am I doing wrong?

2012-02-05 Thread Geoffroy Gomet
Hey Dennis, Your form_for tag is missing the = sign , it should be %= form_ for ... Regards Geoffroy On Feb 5, 6:17 am, Dennis Fashimpaur li...@ruby-forum.com wrote: All, I am a rookie to Ruby on Rails. I just started with a book from O'Reilly on Friday (Learning Rails). I have run through

Re: [Rails] Re: Create a Blog post

2012-02-05 Thread Colin Law
On 4 February 2012 21:58, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sat, Feb 4, 2012 at 11:10 AM, Richard l. li...@ruby-forum.com wrote: apologies for the ancient font tags, but every one has to start somewhere Uh, start by using markup that was deprecated 13 years ago? Why? I'm

[Rails] Re: libv8 problem

2012-02-05 Thread Alex Mercer
sudo rake db:create Why you running it with `sudo`? Just try like that: bundle exec rake:db create On Feb 4, 12:54 pm, Phil Dobbin phildob...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, all. I'm trying to run an intial rake to create my databases on a Rails

[Rails] Re: Can't get WEBrick to work

2012-02-05 Thread CavalryJim
On Feb 4, 8:17 pm, mitijain...@gmail.com mitijain...@gmail.com wrote: Hi, can you send the exact output which you are getting after running this command. Mitesh Jain On Feb 4, 7:41 pm, Joel joel.wes...@gmail.com wrote: Hello, Also, you need to be in a directory containing a Rails

[Rails] RoR Developer Needed (Royal Oak, MI)

2012-02-05 Thread mbar...@otterbase.com
Hi everyone, I am looking for an RoR Developer with the following experience for a great opportunity in Royal Oak, MI. If you or anyone you know is interested in learning more please contact me directly at mbar...@otterbase.com or 734.462.9505. • 5+ years of total commercial

[Rails] Very strange problem a lot of ruby process

2012-02-05 Thread Steve
Very strange problem: Ton's of ruby process just running simple command rails --version or rails new test1 . I try to run this simple command rails new test1 -- this suppose to be create a new rails site. rails --version -- even this I got ton's of ruby process -- You received this message

[Rails] Startup Chile Company Looking For Founding Developer/CTO

2012-02-05 Thread Jennifer Turliuk
Hi everyone, My name is Jennifer Turliuk. I'm currently in Santiago, Chile for the next 6 months as part of the Startup Chile program. I think you may be able to help me out. We are looking to bring on a developer ASAP (see description below). We'd love to hear from you. Or, if you know of

[Rails] How do I prevent Rails from trying to load the application for every Rake task?

2012-02-05 Thread John Feminella
Here's what the default Rails 3 Rakefile looks like: require File.expand_path('../config/application', __FILE__) MyApp::Application.load_tasks This does the following: * Loads my Rails application. This takes around 15 seconds. Most of this time is spent on the `Bundler.require`; Rails

[Rails] Re: failing rspec - has_password? - Ruby On Rails tutorial

2012-02-05 Thread Jake Levine
in your user_spec.rb file. make sure you have:        before(:each) do          @user = User.create!(@attr)        end right after the following line:      describe has_password? method do it's missing from the code in the tutorial. you'll see it's part of the password encryption block. it

[Rails] Rails 3: Route all POST to :update method for a specific namespace

2012-02-05 Thread Chris
Against the background of the PUT/PATCH/POST partial update discussion ( https://github.com/rails/rails/pull/505 ): Actually I want to use the PATCH method in Rails but it is not yet implemented. So can I define (for a whole namespace) that THIS is standard behavior: POST resource/:id =

Re: [Rails] Forum in rails 3

2012-02-05 Thread Lupu Alexandru Emil
hello! have a look here : https://github.com/radar/forem Alecs On Feb 3, 2012, at 5:36 AM, kengsreng tang wrote: Hi All i want to integrate forum in my web application. so does have any gem that good for me ? thank sreng -- Posted via http://www.ruby-forum.com/. -- You received

Re: [Rails] [ANN] Ruby on Ales 2012, March 1st 2nd in Bend, Oregon

2012-02-05 Thread ramesh kumar
Hi, unsubscribe my mail id from this group -- Thanks Regards, *Rameshkumar.S* Software Developer, *Mob: +91-9790851139.* http://www.ozonetechies.in 87/4 III Floor, Arcot Road, Vadapalani, Chennai-600026, India. Tel : +91-44-42359015, Website : www.ozonetechies.in, Email :

Re: [Rails] Re: Re: Re: Clean Up the code

2012-02-05 Thread Lupu Alexandru Emil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Feb 3, 2012, at 3:13 PM, Srimanta Chakraborty wrote: Prince Joseph wrote in post #1043906: @Michael is right. We can help you in doing this, in case you are stuck up somewhere, but you must really atleast make an effort. As of point 3, you

Re: [Rails] Ruby on Rails Tutorial Using Google+

2012-02-05 Thread Ryan Cheung
Great work. That will be very helpful, thanks! -- Best Regards, Ryan Cheung On Tue, Jan 17, 2012 at 1:30 AM, Rajeev Kannav Sharma rajeevsharm...@gmail.com wrote: Hi all, I have created a Goggle+ page Ruby on Rails Tutorial Using Google+https://plus.google.com/106628992551398658527. I

[Rails] How to deal with vendor/plugins after upgrading to rails 3.2.1

2012-02-05 Thread Inetufo
After upgrading to rails 3.2.1 This warning occurs You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/ initializers/myplugin.rb. See the

[Rails] Re: Create a Blog post

2012-02-05 Thread Carlos Agarie
I agree with Colin. He is starting to code now, he should focus in one or two things at a time. But Richard, CSS is *very* good and you should learn how to use it. :) This is the RailsGuides page about debugging: http://guides.rubyonrails.org/debugging_rails_applications.html Good luck! On Feb

[Rails] Re: How to use webservices in rails

2012-02-05 Thread Balaji D Loganathan
Hi Deepika, Please see a sample savon app code here http://www.spritle.com/blogs/2011/09/28/consume-soap-webservices-using-ruby-with-savon/ Regards Balaji Spritle software. On Feb 3, 6:27 pm, Deepika Vummiti li...@ruby-forum.com wrote: Robert Walker wrote in post #1043857: Deepika

Re: [Rails] Mysql related query

2012-02-05 Thread Lupu Alexandru Emil
Hello First of all, if there are 2 models ... then i think you got it wrong ... assuming you have class Book ActiveRecord::Base has_many :likes has_one :book_expire end class BookExpire ActiveRecord::Base belongs_to :book end class Like ActiveRecord::Base belongs_to :book end Then

Re: [Rails] can i have two rails versions

2012-02-05 Thread Loganathan Sellapa
You can create the rails 3 application by 'rails new appname' And for rails 2 application '*rails_2.3.8_appname*' regards, Loganathan On Fri, Feb 3, 2012 at 9:23 PM, hanish jadala emailtohoneyr...@gmail.comwrote: hi i have installed rails3.2.1 and rvm but this had happen *** LOCAL GEMS ***

[Rails] Intermittent Fault on Basket Checkout to Sagepay

2012-02-05 Thread RubyJoe123
We're experiencing a fault with our online basket, previously has worked fine (3yrs) now it sends checkout to wrong address, but only sometimes? Anyone had any experience of this? Thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] how to add mysql in rails 3.2.1

2012-02-05 Thread Loganathan Sellapa
gem 'mysql2', use -d option to specify the database like 'rails new appname *-d mysql*' regards, Loganathan On Fri, Feb 3, 2012 at 9:33 PM, honey ruby emailtohoneyr...@gmail.comwrote: hey everyone i have installed rails 3.2.1 and want to create app but i use mysql wht the gems need to add

[Rails] Rails 3.0.1 and Rake

2012-02-05 Thread soldier.coder
I'm running Rails 3.0.1 and Rake 0.9.2.2 and when I run Rake I get these warnings: WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /home/ed/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/ rdoctask.rb WARNING: Global access

[Rails] Re: Can't get WEBrick to work

2012-02-05 Thread soldier.coder
Also, what were exact steps you took to download and install latest version of rails? As someone mentioned above, you need to be in the root directory of your app. What does that mean? When you first started developing your app, you probably did a command like: rails new my_app_name, where

[Rails] Re: how to uninstall rails completely

2012-02-05 Thread soldier.coder
I understand honey's situation. You guys on linux have NO idea how good you have it with RVM. I tried Pik (windows supposed answer to RVM) but to no avail. So I turned old laptop into Fedora 16 machine now I am rocking on RVM and all the cool things Fedora offers (VIM!). On Feb 3, 4:20 pm,

[Rails] Re: Very strange problem a lot of ruby process

2012-02-05 Thread Alex Mercer
What outputs this one? gem list -d rails On Feb 1, 9:54 pm, Steve steve21...@gmail.com wrote: Very strange problem: Ton's of ruby process just running simple command rails --version or rails new test1 . I try to run this simple command rails new test1   -- this suppose to be create a new

[Rails] Re: Rails 3.0.1 and Rake

2012-02-05 Thread Alex Mercer
Add this lines to your Gemfile and run bundle gem 'rake', '~ 0.9.2.2' gem rdoc, '~ 3.12' On Feb 5, 6:41 pm, soldier.coder geekprogrammer...@googlemail.com wrote: I'm running Rails 3.0.1 and Rake 0.9.2.2 and when I run Rake I get these warnings: WARNING: 'require 'rake/rdoctask'' is

Re: [Rails] Digest for rubyonrails-talk@googlegroups.com - 25 Messages in 23 Topics

2012-02-05 Thread Phil Dobbin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/02/2012 18:00, rubyonrails-talk@googlegroups.com wrote: libv8 problem http://groups.google.com/group/rubyonrails-talk/t/80e808638c4ba54c Alex Mercer alexey.boby...@gmail.com Feb 05 04:48AM -0800 sudo rake db:create Why

[Rails] Re: Can't get WEBrick to work

2012-02-05 Thread Joel
I did try rails server from the root directory of my app, entitled simple_cms. Here's my command and the results. Macintosh-198:simple_cms joelrw$ rails server NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from

[Rails] Re: Rails 3.0.1 and Rake

2012-02-05 Thread soldier.coder
did that still getting it On Feb 5, 1:13 pm, Alex Mercer alexey.boby...@gmail.com wrote: Add this lines to your Gemfile and run bundle   gem 'rake', '~ 0.9.2.2'   gem rdoc, '~ 3.12' On Feb 5, 6:41 pm, soldier.coder geekprogrammer...@googlemail.com wrote: I'm running Rails 3.0.1

[Rails] How do I create a Rails action for an Ajax request? Rails 3.2.1

2012-02-05 Thread Sergio Tapia
I have a list of items in my shopping page, and each time an add to cart button is clicked, an AJAX request is fired off with only a product_id. Add this item to the cart so to speak. What does my Action have to look like in Rails for this scenario? I'm specifically asking about the controller

[Rails] Re: Can't get WEBrick to work

2012-02-05 Thread Sergio Tapia
Here's a basic rundown. 1. rails new my_new_app This generates your brand new rails application, and puts it all in a new folder called my_new_app. 2. cd my_new_app Go into your my_new_app folder. 3. rails server Launch the rails server - notice you are running this command while INSIDE the

[Rails] Re: how to uninstall rails completely

2012-02-05 Thread Sergio Tapia
In all seriousness, you should install Oracle's free VirtualBox and create yourself a new linux virtual machine. I'm rocking a crappy 2gig RAM desktop computer and work with rails in my Ubuntu virtual machine (1gb ram assigned for it). It's really simple and not complicated at all. :) -- You

Re: [Rails] How do I create a Rails action for an Ajax request? Rails 3.2.1

2012-02-05 Thread Valery Kvon
On 05.02.2012, at 20:23, Sergio Tapia wrote: I have a list of items in my shopping page, and each time an add to cart button is clicked, an AJAX request is fired off with only a product_id. Add this item to the cart so to speak. What does my Action have to look like in Rails for this

[Rails] Re: How do I create a Rails action for an Ajax request? Rails 3.2.1

2012-02-05 Thread Sergio Tapia
Jesus it's that simple? I'll come back with my results! -- 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] Re: How do I create a Rails action for an Ajax request? Rails 3.2.1

2012-02-05 Thread Colin Law
On 5 February 2012 22:07, Sergio Tapia sergiotapiagutier...@gmail.com wrote: Jesus it's that simple? I'll come back with my results! Of course you have also got to do whatever it is that you actually want to achieve - finding the appropriate record or whatever. Coin -- You received this

[Rails] Re: how to get the value of date_select?

2012-02-05 Thread Daisy Di
??any one can help me ?thanks -- 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] Re: how to get the value of date_select?

2012-02-05 Thread Everaldo Gomes
Hi! Take a look at: http://guides.rubyonrails.org/form_helpers.html#using-date-and-time-form-helpers It seems that you've getting some problems with the from date_select, because you're getting: {{:start_year=1980, :end_year=2013}(1i) {:start_year=1980, :end_year=2013}(2i)

[Rails] Log the user who destroyed a record using 'before_destroy' callback

2012-02-05 Thread Prince Joseph
I want to log the user who destroyed a record using before_destroy callback. But, I dont know how to pass arguments to before_destroy(and I am not sure if it is possible). Maybe I am dealing this in the wrong way. Any other perspective to do this will also do. -- Thanks, Prince -- You received

[Rails] Re: Re: Re: Re: Clean Up the code

2012-02-05 Thread Srimanta Chakraborty
Hi, I am a new guy in ruby on rails. I am using this forum to get help to learn this. So please don't think that I am a loser or chancer. In this world everybody tries to get chance. If you don't want to help then just ignore it. Thanks -- Posted via http://www.ruby-forum.com/. -- You

[Rails] preferable deployment stack for windows

2012-02-05 Thread Srimanta Chakraborty
Hi, I am going to deploy one web application on Ruby on rails on windows OS. I have installed ruby1.9.2p180, rails 3.2.1, gem 1.8.15, mysql,apache 2.0. Apart from these, anything needs to deploy my web application? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Log the user who destroyed a record using 'before_destroy' callback

2012-02-05 Thread Prince Joseph
I got it. I can add a virtual attribute to the model (something like `attr_accessor :destroyer` or something) and you can access it in the method for `before_destroy` callback. Something like: Controller @record = Record.find(params[:id]) @record.destroyer = current_user @record.destroy Model

[Rails] Run the application in browser

2012-02-05 Thread Srimanta Chakraborty
Hi, I am a new guy in Ruby on rails.I have installed ruby1.9.2p180, rails 3.2.1, gem 1.8.15,mysql,apache 2.0 and JetBrains RubyMine 3.1.1 . Whenever, I am creating the application through he command prompt by rails new Blog then Blog application is creating successfully and start the server

[Rails] Dynamic Select Menus for Rails 3

2012-02-05 Thread sly verano
Guys help me please. How to convert this rails-cast to rails 3 ? I'm trying to convert it but still there is no luck. http://railscasts.com/episodes/88-dynamic-select-menus Thanks in Advanced. c,) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Run the application in browser

2012-02-05 Thread Prince Joseph
It seems you have changed your MySQL version. You can try reinstalling mysql2 gem using: gem uninstall mysql2 gem install mysql2 On Mon, Feb 6, 2012 at 12:10 PM, Srimanta Chakraborty li...@ruby-forum.comwrote: Hi, I am a new guy in Ruby on rails.I have installed ruby1.9.2p180, rails 3.2.1,

[Rails] Re: Run the application in browser

2012-02-05 Thread Srimanta Chakraborty
Prince J. wrote in post #1044258: It seems you have changed your MySQL version. You can try reinstalling mysql2 gem using: gem uninstall mysql2 gem install mysql2 On Mon, Feb 6, 2012 at 12:10 PM, Srimanta Chakraborty li...@ruby-forum.comwrote: from .rb:66:in `each'

Re: [Rails] Re: Re: Re: Re: Clean Up the code

2012-02-05 Thread Michael Pavling
On 6 February 2012 06:02, Srimanta Chakraborty li...@ruby-forum.com wrote: So please don't think that I am a loser or chancer. What would _you_ call someone who tries to cheat their way through their qualifications? -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Re: Re: Re: Re: Clean Up the code

2012-02-05 Thread Srimanta Chakraborty
Michael Pavling wrote in post #1044267: On 6 February 2012 06:02, Srimanta Chakraborty li...@ruby-forum.com wrote: So please don't think that I am a loser or chancer. What would _you_ call someone who tries to cheat their way through their qualifications? Thanks for your comment... --