[Rails] CheckBox with Value and Drop down menu

2012-10-12 Thread Marychris Nuñeza
I am a newbie in Ruby. I would to ask from all the experts in Ruby on how to create a checkbox with value as well as a dropdown menu. I want it like this site http://www.celiac.com/glutenfreemall/advanced_search.php. Their search form is good and I want to learn every aspect in doing it. Hope you

[Rails] CheckBox with Value and Drop down menu

2012-10-12 Thread Marychris Nuñeza
I am a newbie in Ruby. I would to ask from all the experts in Ruby on how to create a checkbox with value as well as a dropdown menu. I want it like this site http://www.celiac.com/glutenfreemall/advanced_search.php. Their search form is good and I want to learn every aspect in doing it. Hope you

Re: [Rails] CheckBox with Value and Drop down menu

2012-10-12 Thread aash dhariya
checkbox -- http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-check_box_tag selectbox -- http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-select_tag On Fri, Oct 12, 2012 at 12:11 PM, Marychris Nuñeza li...@ruby-forum.comwrote:

[Rails] [JOBS] Looking to Source Multiple AGile Teams for High Profile Client

2012-10-12 Thread Ernie Varitimos
I need to source a local Agile (Scrum) team (4 people) in NYC for a long-term contract, and at least 2 remote teams (can be anywhere). If you are interested please contact me. For NYC I'm looking for the following roles, all expenses will be paid: Architect Lead Engineer Release Engineer Scrum

[Rails] *** A great opportunity for ROR developer to join a rapidly growing business - Sydney Based ***

2012-10-12 Thread PRA
Please contact me by email on james.gil...@pra.com.au or call me on +61 2 8234 3521. They will sponsor overseas candidates so a great chance to get into a great country and great company!! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: what;s the right url in this case

2012-10-12 Thread Quang Dũng
Try to run rake routes to see all the routes of your current application. -- 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] CheckBox with Value and Drop down menu

2012-10-12 Thread Bala Mani
Hai! I hope the above link is okay for you... http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html by bdeveloper01 -- 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: How to make a model or a model decorator aware of its controller in Rails?

2012-10-12 Thread Alexey
On Monday, October 8, 2012 7:37:21 PM UTC+2, Matt Jones wrote: On Monday, 8 October 2012 01:38:22 UTC-7, Alexey wrote: I will answer myself: i think a decorator is not a good place to store an associated controller, a decorator should only know about model data and HTML markup. I am

Re: [Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-12 Thread Alexey
On Monday, October 8, 2012 11:02:19 AM UTC+2, Brett McHargue wrote: You could check out http://objectsonrails.com/ and https://github.com/objects-on-rails/display-case - as it says, it brings together the model and context (which could be a controller) brett Thanks, i'll look into it.

[Rails] Re: [JOBS] Looking to Source Multiple AGile Teams for High Profile Client

2012-10-12 Thread Mukesh yadav
On Friday, October 12, 2012 1:40:02 AM UTC+5:30, Ernie Varitimos wrote: I need to source a local Agile (Scrum) team (4 people) in NYC for a long-term contract, and at least 2 remote teams (can be anywhere). If you are interested please contact me. For NYC I'm looking for the following

[Rails] Re: [JOBS] Looking to Source Multiple AGile Teams for High Profile Client

2012-10-12 Thread Mukesh yadav
Hi, I am interested please let me know other details. regards, Mukesh On Friday, October 12, 2012 1:40:02 AM UTC+5:30, Ernie Varitimos wrote: I need to source a local Agile (Scrum) team (4 people) in NYC for a long-term contract, and at least 2 remote teams (can be anywhere). If you are

[Rails] Re: back /front page question

2012-10-12 Thread zhangjingqiang
Or you can give a parameter from new.html.erb or edit.html.erb to _form.html.erb. In the _form.html.erb,check the parameter where it from and do the different things. 在 2012年10月11日星期四UTC+9上午3时29分40秒,roelof写道: Hello, Imaging I want to use another layout for show and one for edit and new.

[Rails] Re: back /front page question

2012-10-12 Thread roelof
Thanks for all the answers and solutions. Now see what will work for me. Roelof Op vrijdag 12 oktober 2012 10:40:00 UTC+2 schreef zhangjingqiang het volgende: Or you can give a parameter from new.html.erb or edit.html.erb to _form.html.erb. In the _form.html.erb,check the parameter

[Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
Hi all I study and understand both the gem , now i am confuse which is one best. Let me know which one is best for debugging ? Is either Pry or Ruby Debug ? Also explain advantage of your selected gem ? Thanks Regards Fahim Babar Patel -- You received this message because you are

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Norbert Melzer
As far as I understood the differences ruby debug just sends you to irb, while pry sends you to the pry console which has syntax highlight, code completion and other sugar. But I am not aware of the differences in how to use them because I use neither. Also as far as I know ruby debug doesn't

[Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-12 Thread Matt Jones
On Thursday, 11 October 2012 13:45:02 UTC-4, Erwin wrote: there are a lot of solutions , some gems requiring a separate server setup... I need to search for occurrences of some 'text in multiple columns ( :name; :email, :description, ..) Should I actually setup a SOLr server ?

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
Thanks for reply. Still can u tell me which one is best for debuging Bye On Friday, October 12, 2012 7:18:52 PM UTC+5:30, Norbert Melzer wrote: As far as I understood the differences ruby debug just sends you to irb, while pry sends you to the pry console which has syntax highlight,

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Jordon Bedwell
Hi, On Fri, Oct 12, 2012 at 5:22 AM, Fahim Patel pafa...@gmail.com wrote: Let me know which one is best for debugging ? Pry is a cross-over REPL (IMO) that replaces IRB and not Ruby Debugger. I say it's cross-over because it supports some of what Ruby Debugger does with addons and sometimes

[Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-12 Thread Jordon Bedwell
On Friday, 12 October 2012 09:12:45 UTC-5, Matt Jones wrote: Depending on what you're looking for, Sunspot may be useful - I've used it for a number of projects that needed full-text seach + filtering etc. There's a Railscast that should help you get started:

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
On Friday, October 12, 2012 8:49:23 PM UTC+5:30, Jordon Bedwell wrote: Hi, On Fri, Oct 12, 2012 at 5:22 AM, Fahim Patel paf...@gmail.comjavascript: wrote: Let me know which one is best for debugging ? Pry is a cross-over REPL (IMO) that replaces IRB and not Ruby Debugger. I say

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Jordon Bedwell
On Friday, 12 October 2012 10:33:05 UTC-5, Fahim Patel wrote: As we use binding.pry , but we use same debugger in ruby debugger. And as per my knowledge debugger do same thing as binding.pry.If not than explain ? They do. But there is a distinction in that one's only goal is to debug,

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
On Friday, October 12, 2012 9:18:57 PM UTC+5:30, Jordon Bedwell wrote: On Friday, 12 October 2012 10:33:05 UTC-5, Fahim Patel wrote: As we use binding.pry , but we use same debugger in ruby debugger. And as per my knowledge debugger do same thing as binding.pry.If not than explain ?

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
I read article about REPL, i understood. But what your cross over tool lines says.? On Friday, October 12, 2012 9:25:58 PM UTC+5:30, Fahim Patel wrote: On Friday, October 12, 2012 9:18:57 PM UTC+5:30, Jordon Bedwell wrote: On Friday, 12 October 2012 10:33:05 UTC-5, Fahim Patel wrote:

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Jordon Bedwell
On Friday, 12 October 2012 10:55:58 UTC-5, Fahim Patel wrote: 1. Pry is a REPL 2. cross-over tool What this lines means. 1.) Read-eval-print loop, 2.) Stolen from car marketing (though I have no idea if it originates there), basically a cross-over was a mix between an SUV/Minivan and

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Fahim Patel
Did u have any knowledge related to any deployment tool. On Friday, October 12, 2012 9:31:42 PM UTC+5:30, Jordon Bedwell wrote: On Friday, 12 October 2012 10:55:58 UTC-5, Fahim Patel wrote: 1. Pry is a REPL 2. cross-over tool What this lines means. 1.) Read-eval-print loop, 2.)

Re: [Rails] Which one is best for debugging (Pry or Ruby Debug) ?

2012-10-12 Thread Colin Law
On 12 October 2012 16:48, Jordon Bedwell envyge...@gmail.com wrote: On Friday, 12 October 2012 10:33:05 UTC-5, Fahim Patel wrote: As we use binding.pry , but we use same debugger in ruby debugger. And as per my knowledge debugger do same thing as binding.pry.If not than explain ? They do.

[Rails] What is the best way to check if a method is a singleton method or an instance method?

2012-10-12 Thread John Merlino
Let's say I want to check if a method of an object is an instance method or a singleton method, what is the best way to do it? -- 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] [JOBS] Hacker / Co-Founder - Start-up - Equity Basis | www.seriousoffer.com

2012-10-12 Thread steed malbranque
We're a small team of serial start-uppers based in the South East of England. We're looking for a co-founder come technical partner to get involved in a whole new project. The concept has been defined and tested and the commercial aspects of the project have been worked out. We need to find an

[Rails] Re: Consuming RESTful api with activeResource

2012-10-12 Thread Xavael
Maybe you can use the Custom Methods (http://api.rubyonrails.org/classes/ActiveResource/CustomMethods.html) to try if it works. And the try to use the normal ActiveResource ... -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] AR validation question

2012-10-12 Thread Javix
What is the best way to implement a validation for a withdrawal operation? So there is an Operation and Client models. Client has_many :operations. In case of withdrawal operation, I'd like to check if the requested sum is not greater than a Client account balance. How to link the validation in

Re: [Rails] AR validation question

2012-10-12 Thread Colin Law
On 12 October 2012 22:15, Javix s.camb...@gmail.com wrote: What is the best way to implement a validation for a withdrawal operation? So there is an Operation and Client models. Client has_many :operations. In case of withdrawal operation, I'd like to check if the requested sum is not greater

Re: [Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-12 Thread Hassan Schroeder
On Fri, Oct 12, 2012 at 8:24 AM, Jordon Bedwell envyge...@gmail.com wrote: Depending on what you're looking for, Sunspot may be useful I'm gonna definitely second this suggestion if you don't have PG. I still somewhat like PG to save some money but I love working with solr What does that

Re: [Rails] Re: Consuming RESTful api with activeResource

2012-10-12 Thread Fernando Almeida
There is the remove_root method, is this what you want? https://github.com/rails/rails/blob/6b4bbb427455ec1af6bdf0896a62129bd3c8c4aa/activeresource/lib/active_resource/formats.rb#L14 2012/10/11 arturo drlt li...@ruby-forum.com So far I came with a solution for two of this issues: 1) Url

Re: [Rails] Re: Consuming RESTful api with activeResource

2012-10-12 Thread Fernando Almeida
Or do you want the ActiveResource::Base.include_root_in_json = false ? https://github.com/rails/activeresource/blob/master/test/cases/base_test.rb#L1092 2012/10/13 Fernando Almeida ferna...@fernandoalmeida.net There is the remove_root method, is this what you want?

Re: [Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-12 Thread Jordon Bedwell
On Fri, Oct 12, 2012 at 4:40 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: What does that last sentence mean? Solr is FOSS. It means what it means. Obviously you think that Solr runs on Unicorn farts and not on servers, that or you think that servers are free. -- You received this

Re: [Rails] What is the best way to check if a method is a singleton method or an instance method?

2012-10-12 Thread Ignacio Piantanida
object.singleton_methods.include? :the_method 2012/10/12 John Merlino stoici...@aol.com Let's say I want to check if a method of an object is an instance method or a singleton method, what is the best way to do it? -- You received this message because you are subscribed to the Google Groups

[Rails] IRB vs ruby-doc.org

2012-10-12 Thread John Merlino
The ruby documentation says instance_variable_set is a public instance method of Object: http://ruby-doc.org/core-1.9.3/Object.html#method-i-instance_variable_set And I believe it because you can call it on instances of Object: 1.9.3p0 :005 Object.new.instance_variable_set :@a, 1 = 1 It

Re: [Rails] IRB vs ruby-doc.org

2012-10-12 Thread Ignacio Piantanida
Object includes the Kernel module, which defines the :instance_variable_set method 1.9.3p194 :001 Kernel.instance_methods(false).include? :instance_variable_set = true 1.9.3p194 :002 Object.is_a? Kernel = true 2012/10/13 John Merlino stoici...@aol.com The ruby documentation says

Re: [Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-12 Thread Dave Aronson
I've been using pg_search, so I could do full text search on Heroku *for free* (vs. paying for their WebSolr or other full text search add-ons). However, that has some serious problems, but I've figured out some workarounds, and made slides for a lightning talk. They're available at:

[Rails] Database design, working but looking for better ways

2012-10-12 Thread Soichi Ishida
Rails 3.1.3 Hi. I have designed the database used for my travel plan application. You should be able to look at the diagram in the link below, hopefully. https://cacoo.com/diagrams/biDSyxh8yzk2kIeg (belongs_to is omitted since it's obvious) Basically, the application can list the destinations

[Rails] How to include html tag inside rails label tag

2012-10-12 Thread Manoj M.
Hello pls help me, below is my code label style=width:175px;text_align:left;float:left;font-weight:bold;font-size:13px;Group font size=1 color=red*/font/label How to write this html code inside label_tag of rails am clear till font size=1 color=red*/font... label_tag