[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 > 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... -- Posted via http:/

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

2012-02-05 Thread Michael Pavling
On 6 February 2012 06:02, Srimanta Chakraborty 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 "Ruby on Rails: Talk

[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 > wrote: > >> >>from >> .rb:66:in `each' >> C:/ruby/lib/ruby

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 wrote: > 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,

[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: Tal

[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 serv

[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 a

[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 mess

[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 rece

[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

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) "{:start_

[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 t

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 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 message because you are subscribed

[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 rubyonrails-tal

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 f

[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 controll

[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 INSID

[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 rec

[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 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" > wrote: > > > > > > > > > I'm running Rails 3.0.1 and Rake 0.9.2.2 and when I run Rake I

[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 /usr/l

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 > > > Alex Mercer Feb 05 04:48AM -0800 > > >> sudo rake db:create > Why you running it

[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" 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 deprecated.  Please use 'requ

[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 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 site. > rai

[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, Robe

[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 "my_ap

[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 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 wrote: > hey everyone i have installed rails 3.2.1 and want to create app but i > use mysql wht the gems need to add in gem file > > > > thank

[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 wrote: > Robert Walker wrote in post #1043857: > > > > > > > > > > > Deepika Vummiti wro

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 Th

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 wrote: > hi i have installed rails3.2.1 and rvm but this had happen > *** LOCAL GEMS *** > > actionmailer (3.2.1, 2

[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. T

[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

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.* 87/4 III Floor, Arcot Road, Vadapalani, Chennai-600026, India. Tel : +91-44-42359015, Website : www.ozonetechies.in, Email : i...@ozonetechi

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 po

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+

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/. > > -- > Yo

[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 => :upd

[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 i

[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 lo

[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 anyone

[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 b

[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 softwar

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

2012-02-05 Thread CavalryJim
On Feb 4, 8:17 pm, "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 wrote: > > > > > Hello, Also, you need to be in a directory containing a Rails application when you submit t

[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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, all. > > I'm trying to run an intial rake to create my databases on a Rails > project & no matt

Re: [Rails] Re: Create a Blog post

2012-02-05 Thread Colin Law
On 4 February 2012 21:58, Hassan Schroeder wrote: > On Sat, Feb 4, 2012 at 11:10 AM, Richard l. 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 guessing you're not using a 13-year

[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 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 several examp

[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 = Script.ne