[Rails] [ANN] Rails 3.2.7.rc1 has been released!

2012-07-23 Thread Aaron Patterson
Hi everyone! I've pushed a release candidate for Rails 3.2.7. Please try it out! If you find any bugs present in the 3.2.7 release candidate that where not present in the 3.2.6 release, please report them to the Rails Core mailing list at here: https://groups.google.com/group/rubyonrails-core

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 1:19 PM, lalalalala pqpqpqpqpq wrote: > what do you mean by log entry. I have no idea what your background is, but you really, really do need to address the basics of web development, aside from anything Ruby- or Rails-specific. Good luck, -- Hassan Schroeder ---

Re: [Rails] How to add button to pass drop down menu selection to controller

2012-07-23 Thread Colin Law
On 20 July 2012 21:22, lalalalala pqpqpqpqpq wrote: > Hi, I want to link the selections from a drop down menu in my view to a > controller action. Here's the code for my view: > > [code] > <%= link_to "option A", :controller => "scriptrunner", :action > => "runoptionA" %> > <%= link_to "option B",

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
what do you mean by log entry. -- 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

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 1:07 PM, lalalalala pqpqpqpqpq wrote: > This is the view source after I press go: Yeah, that's 1 of 2... :-) -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- You received this message because y

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
This is the view source after I press go: optiona optionb optionc -- 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.

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 12:42 PM, lalalalala pqpqpqpqpq wrote: > Ok, I changed :id => '1' to :id => 'params[:name][:id]' In the form_tag?? Both irrelevant and wrong. > then, I checked the view source, but no matter what option is selected, > when I press go, the option value is always set to opt

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
Ok, I changed :id => '1' to :id => 'params[:name][:id]' then, I checked the view source, but no matter what option is selected, when I press go, the option value is always set to option A... Even when I view source before pressing go, option valye is set to option A. -- Posted via http://www.r

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 12:12 PM, lalalalala pqpqpqpqpq wrote: > <% form_tag(:controller => 'opt', :action => 'index', :id => 1) do %> ><%= select_tag "option", options_for_select(@options, "") %> ><%= submit_tag "go"%> > <%end%> > In my controller, for my index method I have: > > class

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
This is what my index.html.erb looks like: <% form_tag(:controller => 'opt', :action => 'index', :id => 1) do %> <%= select_tag "option", options_for_select(@options, "") %> <%= submit_tag "go"%> <%end%> In my controller, for my index method I have: class optController < ApplicationContr

Re: [Rails] Re: Re: Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 11:28 AM, lalalalala pqpqpqpqpq wrote: > How would I pass the id of an option from the view to the controller? As > in, what command in the view? And how would I access this id that is > passed, in the controller? You put your select in a form and submit it. That's what f

[Rails] Re: Re: Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
Hassan Schroeder wrote in post #1069841: > On Mon, Jul 23, 2012 at 8:53 AM, lalalalala pqpqpqpqpq > wrote: > >> I have to make this app for my internship, could you just guide me how >> to make the submit button? I'm guessing I'll have to make a form which >> passes the selected option to an actio

Re: [Rails] Re: Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 8:53 AM, lalalalala pqpqpqpqpq wrote: > I have to make this app for my internship, could you just guide me how > to make the submit button? I'm guessing I'll have to make a form which > passes the selected option to an action in my controller? Yes. Unless you use JavaScri

[Rails] Re: how to display the terminal output to the page in real time.

2012-07-23 Thread Laut Toore
Thanks for the reply, I will investigate for that side -- 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

[Rails] Re: Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
Hassan Schroeder wrote in post #1069829: > On Mon, Jul 23, 2012 at 8:39 AM, lalalalala pqpqpqpqpq > wrote: > >> Sorry, I'm new to HTML.. I'm struggling implementing the submit button. > > Then trying to develop a web app might be a little premature... :-) > > You should find a tutorial on how web

Re: [Rails] Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 8:39 AM, lalalalala pqpqpqpqpq wrote: > Sorry, I'm new to HTML.. I'm struggling implementing the submit button. Then trying to develop a web app might be a little premature... :-) You should find a tutorial on how web forms work and understand the basics first. IMO. --

[Rails] Re: Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
Hassan Schroeder wrote in post #1069823: > > Do you know HTML? Do you know JavaScript? > > -- > Hassan Schroeder hassan.schroe...@gmail.com > http://about.me/hassanschroeder > twitter: @hassan Sorry, I'm new to HTML.. I'm struggling implementing the submit button. -- Pos

[Rails] testing references

2012-07-23 Thread John Merlino
I am struggling somewhat with testing. And I would like to know a comprehensive reference on rails unit test. I find the railscasts 5 minute video not comprehensive. I have the ruby programming language, design patterns in ruby, and rails 3 way books and none of them delve at all into testing. So I

Re: [Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread Hassan Schroeder
On Mon, Jul 23, 2012 at 7:59 AM, lalalalala pqpqpqpqpq wrote: > Now, how would I add a submit button in my view so when some1 has for > example, "A" selected, the action runA would be called in my controller. Using the same suggestions you already got for the same question? It's either a form a

[Rails] [jobs] Front-end Developer (m/f) in Berlin, Germany

2012-07-23 Thread Wimdu GmbH
Do you want to build the front-end of a product used by thousands of people all over the world every month? Do you want to build the most delicious and usable web app in the travel industry by balancing design aesthetic and bulletproof code? Wimdu is an exciting start-up company headquartered in B

[Rails] Re: How to add button to pass drop down menu selection to controller

2012-07-23 Thread lalalalala pqpqpqpqpq
Ok, i changed my view to <%= select_tag "options", options_for_select(@options, "") %> and in my controller I have: def index @options = ["A", "B", "C"] end Now, how would I add a submit button in my view so when some1 has for example, "A" selected, the action runA would be called in my contr

[Rails] Re: Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Colin Law wrote in post #1069800: > On 23 July 2012 12:15, Sebastjan H. wrote: >>> Colin >> zsh: " => not installed" >> date: "2012-04-20" >> ruby: "/home/sebah/.rvm/rubies/ruby-1.9.3-p194/bin/ruby" >> MY_RUBY_HOME: "/home/sebah/.rvm/rubies/ruby-1.9.3-p194"

Re: [Rails] Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Colin Law
On 23 July 2012 12:15, Sebastjan H. wrote: > Colin Law wrote in post #1069764: >> On 23 July 2012 11:58, Sebastjan H. wrote: Colin >>> # =* - current && default >>> # * - default >> >> What does >> rvm info >> show? >> >> Colin > > rvm info: > > ruby-1.9.3-p194: > > system: > uname:

[Rails] Re: Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
lionel first-developer wrote in post #1069780: > Try this as well : > > *rvm use ruby-1.9.3-p125* > > and retry :) > nope, still the same error as above. /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError) from /usr/

Re: [Rails] Re: Re: Re: trouble with new app in rails

2012-07-23 Thread lionel Lioninho
Try this as well : *rvm use ruby-1.9.3-p125* and retry :) 2012/7/23 Sebastjan H. > Rick Lloyd wrote in post #1069775: > > My guess is you've got something wrong in your shell environment. What > > do > > you see when you type: > > > > $(*which ruby) --version* > produced > bash: syntax e

[Rails] Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Rick Lloyd wrote in post #1069775: > My guess is you've got something wrong in your shell environment. What > do > you see when you type: > > $(*which ruby) --version* produced bash: syntax error near unexpected token `--version*' and > *`which ruby` --version* produced bash: */home/sebah/.r

[Rails] Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Rick
My guess is you've got something wrong in your shell environment. What do you see when you type: $(*which ruby) --version* NOTE: this is proper syntax for sh, bash, or ksh. For csh use: *`which ruby` --version* Rick On Monday, July 23, 2012 7:15:39 AM UTC-4, Ruby-Forum.com User wrote: >

Re: [Rails] scheduling mails in 2.3.8

2012-07-23 Thread Thota praneeth
write the following code in development.rb config.action_mailer.raise_delivery_errors = false config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :tls => true, :enable_starttls_auto => true, :address => 'smtp.gmail.com', :port => 587, :authentication => :plain, :us

[Rails] Re: translations for custom validation error messages

2012-07-23 Thread Ace Suares
Thanks, Indeed, when a message is send as a String, it will be taken literally, and if it is send as a Symbol, it will be looked up in the translation table. Nifty! Cheers ace On Friday, July 20, 2012 8:21:50 PM UTC-4, Ace Suares wrote: > > In validations, one can add a custom error message:

[Rails] Re: Validation in ruby on rails

2012-07-23 Thread Ace Suares
Dear sirs, I dont't think the addition of :message => "can't be blank" does make a difference.\ Validations have their own strings already packed, in en.yml in the active_model gem. In the console (rails c) you can try it out (assuming your model is named 'Person'): p=Person.new p.valid? p.

[Rails] Re: Re: Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Colin Law wrote in post #1069764: > On 23 July 2012 11:58, Sebastjan H. wrote: >>> Colin >> # =* - current && default >> # * - default > > What does > rvm info > show? > > Colin rvm info: ruby-1.9.3-p194: system: uname: "Linux sebah-laptop 3.0.0-23-generic #38-Ubuntu SMP Fri Jul 6

Re: [Rails] Re: Re: trouble with new app in rails

2012-07-23 Thread Colin Law
On 23 July 2012 11:58, Sebastjan H. wrote: > Colin Law wrote in post #1069761: >> On 23 July 2012 10:29, Sebastjan H. wrote: regards, seba >>> >>> how would I check for and completely remove version 1.8? >> >> I strongly advise using rvm. Then you will have full control of ruby >> and

[Rails] Re: Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Colin Law wrote in post #1069761: > On 23 July 2012 10:29, Sebastjan H. wrote: >>> regards, >>> seba >> >> how would I check for and completely remove version 1.8? > > I strongly advise using rvm. Then you will have full control of ruby > and gem versions. > > Colin I am using rvm and according

Re: [Rails] Re: trouble with new app in rails

2012-07-23 Thread Colin Law
On 23 July 2012 10:29, Sebastjan H. wrote: > Sebastjan H. wrote in post #1069754: >> lionel first-developer wrote in post #1069751: >>> It seems that you still using ruby 1.8. >>> >> >> I thought so too, however, ruby -v gives: >> >> ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] >> >> >>

Re: [Rails] Deleting multiple contacts using check_box_tag

2012-07-23 Thread sumit srivastava
This is my code for the button to submit this delete request, <%= link_to 'Destroy Selected', > {:action => 'destroySelected', > :contact_ids => 'contact_ids[]'}, > :remote => true%> > Where destroySelected is the action in controller to delete the

[Rails] Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Sebastjan H. wrote in post #1069754: > lionel first-developer wrote in post #1069751: >> It seems that you still using ruby 1.8. >> > > I thought so too, however, ruby -v gives: > > ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] > > > regards, > seba how would I check for and completely r

[Rails] [jobs] Technical Lead – Ruby on Rails (m/f) in Berlin, Germany

2012-07-23 Thread Wimdu GmbH
Wimdu is an exciting start-up company headquartered in Berlin and one of the biggest Ruby projects in Europe. Initially funded with US$90 million, Wimdu has grown to host over 50,000 properties in over 100 countries since March 2011. Our main concept is to “travel like a local”. This idea is spread

Re: [Rails] Deleting multiple contacts using check_box_tag

2012-07-23 Thread sumit srivastava
Hi, Still nothing has changed. The log shows parameters being passed as, Parameters: {"contact_ids"=>"contact_ids[]"} > Complete log is Started GET "/destroy_selected?contact_ids=contact_ids%5B%5D" for 127.0.0.1 > at Mon Jul 23 14:56:04 +0530 2012 > Processing by ContactsController#destroySelec

[Rails] Re: trouble with new app in rails

2012-07-23 Thread Sebastjan H.
lionel first-developer wrote in post #1069751: > It seems that you still using ruby 1.8. > I thought so too, however, ruby -v gives: ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] regards, seba -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

Re: [Rails] trouble with new app in rails

2012-07-23 Thread lionel Lioninho
It seems that you still using ruby 1.8. Try : *ruby -v * And show me the output. If it's not ruby 1.9.3-p194, just install this version of ruby *rvm install 1.9.3-p194 *( if you are using 'rvm' as ruby management tool ) Keep me posted ;) 2012/7/23 Sebastjan H. > Hi, > > I've just installed

[Rails] trouble with new app in rails

2012-07-23 Thread Sebastjan H.
Hi, I've just installed the latest gem version and also rails. Everything went ok. I am using Ubuntu 11.10 with ruby 1.9.3-p194. However, when I try to create a new application, I get: --- /usr/local/lib/site_ruby/1.8/rubyge

[Rails] parceria/contato

2012-07-23 Thread desk_me
Preciso de um freelancer que entenda bem a linguagem para administrar um projeto já criado. Para os interessados, envio aqui meu contato pessoal para mais informações. andd.salvado...@gmail.com Obrigado -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

Re: [Rails] Deleting multiple contacts using check_box_tag

2012-07-23 Thread Carlos Eduardo Ribeiro
this works fine for me: http://www.skuunk.com/2008/05/checkbox-arrays-in-rails.html :) 2012/7/20 Sumit Srivastava > I am aware of that. But I am not able to figure out the way I should pass > the parameters. I need help with that. > > > On Friday, 20 July 2012 19:28:19 UTC+5:30, Hassan Schroeder

Re: [Rails] scheduling mails in 2.3.8

2012-07-23 Thread terasawan
Hi. I think you should use cron and `script/runner'. 2012/7/20 honey ruby : > Hi all, > > How can i send mails in rails 2.3.8 and schedule them when i need it. > i've tried with whenever gem but it did not work properly . can any one help > me out . > > thanks in advance > > -- > You receiv

[Rails] Re: Need to Create Soap Web Service in Rails 3.2

2012-07-23 Thread VJ
Following link might be useful for you http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html On Wednesday, June 13, 2012 11:06:56 PM UTC+5:30, Loganathan Sellappa wrote: > > Hi All, > > I want to create an application which needs to provide SOAP services to > multiple

Re: [Rails] Rails' inflections are messy

2012-07-23 Thread Matthew Johnston
On Thursday, July 19, 2012 6:53:43 AM UTC-5, paulie wrote: > > I personally don't like them at all. I wish that all the names of > controllers/routes/models were unchanged so I wouldn't have to keep > deciding whether I needed to pluralize. I remember spending too much > time trying to straighte

[Rails] GIT Credentials for Code Repository

2012-07-23 Thread jgRoR
Hey all, -- 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-talk+unsubscr...@googlegroups.com. To view this d

[Rails] Ruby on Rails Devs (f/m) in BERLIN, Germany

2012-07-23 Thread Wimdu GmbH
Is GitHub the first thing you think of when when you hear “forking”? Wimdu is an exciting, new start-up company headquartered in Berlin and one of the biggest Ruby projects in Europe. Initially funded with US$90 million, Wimdu has grown to host over 50,000 properties in over 100 countries since Mar