[Rails] RE: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier

2011-06-13 Thread Satish N Kota
Cool and congrats...would you like this to go on IndiaRubyConsortium? Thanks and Regards Satish Kota Administrator, IndiaRubyConsortium -Original Message- From: bangalore...@googlegroups.com [mailto:bangalore...@googlegroups.com] On Behalf Of hemanth Sent: Sunday, June 12, 2011 11:50 PM

[Rails] Re: Rails 3.07 dup issue

2011-06-13 Thread Frederick Cheung
On Jun 13, 5:21 am, gerbdla gerb...@gmail.com wrote: Hi not sure if this is where I should post this problem but since upgrading to rails 3.07 dup is not working as expected for Hash basically in method I have this         dup_row = row.dup         #then I delete a row of my original hash

[Rails] Need security patches

2011-06-13 Thread seeni khan
Hi All, I am using rails2.3.4 version ruby version 1.8.7 for my product.My client suggest me to apply if any security patches (security needs to be fixed in rails 2.3.4 ruby 1.8.7) available. I dont know where and how should i find it.Please suggest me an idea or anyone knows any security patches

[Rails] Re: Rails 3.07 dup issue

2011-06-13 Thread Nash
If you want deep copy you should use Marshal: class Hash def deep_dup Marshal::load(Marshal::dump(self)) end end foo = {:b={:c={:d=1}}} bar = foo.deep_dup foo[:b][:c][:d] = 2 p foo # = {:b={:c={:d=2}}} p bar # = {:b={:c={:d=1}}} On 13 июн, 07:21, gerbdla gerb...@gmail.com wrote: Hi

Re: [Rails] check_box_tag, include value only if.....

2011-06-13 Thread Colin Law
On 12 June 2011 23:46, Mauro mrsan...@gmail.com wrote: I have: check_box_tag supplier[category_ids][], category.id,@supplier.categories.include?(category). I want to include @supplier.categories.include?(category) only if @supplier is not nil. Have you tried

Re: [Rails] Need security patches

2011-06-13 Thread Colin Law
On 13 June 2011 08:05, seeni khan rafigl...@gmail.com wrote: Hi All, I am using rails2.3.4 version ruby version 1.8.7 for my product.My client suggest me to apply if any security patches (security needs to be fixed in rails 2.3.4 ruby 1.8.7) available. I dont know where and how should i find

[Rails] Re: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier

2011-06-13 Thread hemant
Sure. Is there anything I need to do for that? On Mon, Jun 13, 2011 at 11:42 AM, Satish N Kota satishk...@heurionconsulting.com wrote: Cool and congrats...would you like this to go on IndiaRubyConsortium? Thanks and Regards Satish Kota Administrator, IndiaRubyConsortium -Original

Re: [Rails] Re: Different user sessions with different domain name?

2011-06-13 Thread ratnadeepdeshm...@gmail.com
On Thu, Jun 9, 2011 at 6:16 AM, tashfeen.ekram tashfeen.ek...@gmail.comwrote: just to make sure i dunerstood this. so to optimize ranking, when soeone types in xxx.com it should be routed to www.xxx.com at the level of the http server? yes, you are right. On Jun 2, 5:10 am, Chris Kottom

Re: [Rails] Re: Ruport csv exporting failing on trivial dump

2011-06-13 Thread Federico Rota
Thanks for your reply Andrew. Your answer saved me from googling a little bit more. I'll have a look to the quick fix. If you need more details let me know. Thanks On Sun, Jun 12, 2011 at 11:14 PM, Andrew France andrew-li...@odaeus.co.ukwrote: Hi Federico, Ruport is not currently Ruby 1.9.2

Re: [Rails] check_box_tag, include value only if.....

2011-06-13 Thread Mauro
On 13 June 2011 07:35, Colin Law clan...@googlemail.com wrote: On 12 June 2011 23:46, Mauro mrsan...@gmail.com wrote: I have: check_box_tag supplier[category_ids][], category.id,@supplier.categories.include?(category). I want to include @supplier.categories.include?(category) only if

Re: [Rails] check_box_tag, include value only if.....

2011-06-13 Thread Colin Law
On 13 June 2011 11:43, Mauro mrsan...@gmail.com wrote: On 13 June 2011 07:35, Colin Law clan...@googlemail.com wrote: On 12 June 2011 23:46, Mauro mrsan...@gmail.com wrote: I have: check_box_tag supplier[category_ids][], category.id,@supplier.categories.include?(category). I want to include

[Rails] Spreadsheet view in rails + share options

2011-06-13 Thread sar_dev
Hi I need to create a single page spreadsheet web application in RAILS which should be exactly like google doc(should not use google docs API). It should have the following features 1) should scroll from row to row/ cell to cell using arrow keys and also want to copy and paste from cell to cell

[Rails] force any controller to use HTTPS - ssl_requirement for Rails 2.x app

2011-06-13 Thread rtacconi
I have a Rails 2 app using ssl_requirement plugin. Is it possible to force HTTPS in any controller with one statement, instead of defining the actions in any controller? \ i.e. ssl_required :all = :force -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] Spreadsheet view in rails + share options

2011-06-13 Thread Max Schubert
Investigate javascript grids - there is a growing collection of both free and pay-for clieent side grid frameworks available :) Extjs Jquery grid Are two that come to mind. Max On 6/13/11, sar_dev sarhari...@gmail.com wrote: Hi I need to create a single page spreadsheet web application in

[Rails] RSpec / Capybara ? (from The RSpec Book): Why might should have_selector silently pass when nested?

2011-06-13 Thread daze
I'm going through The RSpec Book, and (specifically around page 333) I encountered a problem. Basically, whenever I use should have_selector in a nested form, it silently passes when it SHOULD fail. I've been copying the code exactly as from the book. Now, there is one major difference - I'm

[Rails] Re: Problem with undefined variable current_user

2011-06-13 Thread Tim Shaffer
The error message is pretty clear - You haven't defined a current_usermethod in your helper. Check out Listing 9.16 in that tutorial you posted. That's where it describes the current_user method you need to add. http://ruby.railstutorial.org/chapters/sign-in-sign-out#code:current_user_working

[Rails] Re: Problem with undefined variable current_user

2011-06-13 Thread Simon Baumgartner
Are you including SessionsHelper in you ApplicationController ? class ApplicationController ActionController::Base protect_from_forgery include SessionsHelper end Simon On Jun 12, 3:43 pm, Jen jen.bot...@gmail.com wrote: Hi everyone, I'm working through the tutorial at the following link

Re: [Rails] Re: Problem with undefined variable current_user

2011-06-13 Thread Jen
Hi, Moved the authenticate method to the helper, after looking at the sample app code from github. This seems to have solved the problem. Thanks, Jen. On 13/06/11 14:49, Simon Baumgartner wrote: Are you including SessionsHelper in you ApplicationController ? class ApplicationController

[Rails] QA Analyst - IN

2011-06-13 Thread Eric Hoffman
Dear Associate, This is Eric Hoffman from Panzer Solutions LLC, Let me know if you suitable consultant for below position. If so, send me your updated resume and contact details. *Position: QA Analyst Location : Indianapolis, IN Duration: 12 months* *Rate: $35/hr* Candidates HAVE to have

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might should have_selector silently pass when nested?

2011-06-13 Thread David Chelimsky
On Jun 13, 8:36 am, daze dmonopol...@gmail.com wrote: I'm going through The RSpec Book, and (specifically around page 333) I encountered a problem.  Basically, whenever I use should have_selector in a nested form, it silently passes when it SHOULD fail. I've been copying the code exactly as

[Rails] how to get the list of users' id

2011-06-13 Thread Yennie
Hi, I have a question that how to take a list of user on user table def show_pic @id = User.find(:all, :select = 'users.id') @id.each do |i| @pic = ActiveRecord::Base.connection.select_value( select picture from albums a

Re: [Rails] [Devise] Display a custom sign_UP form anywhere in your app

2011-06-13 Thread Tim Shaffer
Same way you'd display the form any other place I'd imagine... %= form_for(User.new, :as = :user, :url = registration_path(:user)) do |f| % %= devise_error_messages! % form fields here... %= f.submit Sign up % % end % -- You received this message because you are subscribed to the Google

Re: [Rails] how to get the list of users' id

2011-06-13 Thread Michael Pavling
On 13 June 2011 18:33, Yennie joanne0...@gmail.com wrote:  @id  = User.find(:all,  :select = 'users.id')        @id.each do |i|           @pic =  ActiveRecord::Base.connection.select_value(                                                    select picture from albums a                        

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might should have_selector silently pass when nested?

2011-06-13 Thread daze
Thank you. But then what should be the work around for this with Capybara? I was leaning toward using capybara... Actually, do you recommend webrat over capybara? I just want one with good documentation and stick with one for the sake of getting used to the syntax. Now... One last thing. I

[Rails] Nested Attributes Link / Save to An Existing Record

2011-06-13 Thread Linda
Happy Monday Everyone, Would you kindly help out a struggling nuby in solving this problem? I have been researching all over, yet to find a workable solution. Situation: A model [Announcement] that accepts nested attributes [Recipients] via many_to_many :through = :awards relationship. The

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might should have_selector silently pass when nested?

2011-06-13 Thread David Chelimsky
On Jun 13, 1:22 pm, daze dmonopol...@gmail.com wrote: Thank you.  But then what should be the work around for this with Capybara?  I was leaning toward using capybara... rendered.should have_selector(form input[@type='submit']) You can also use assert_select which ships with Rails and

[Rails] Devise Authorization Error

2011-06-13 Thread jjb123
Hello everyone, I am new to rails and I am having some trouble getting the Devise authorization plugin working. I can get the login page to display, but when I enter the credentials for a known user (I seeded an account to the database) it just says Invalid email or password, even though I'm 100%

[Rails] REQ:WEB DEVELOPER @VA

2011-06-13 Thread joe recruiter33
I have a Web Developer position available with the * Arlington, VA*. Please let me know if you have anyone in mind. Below is the JD.** ** *Web Developer Technical Experience:** ** **- Experience developing and designing large, customer-facing websites** ** **- Expert skills in HTML, table-less

[Rails] errors.add_to_base

2011-06-13 Thread Peter Bell
Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel: http://api.rubyonrails.org/classes/ActiveModel/Errors.html I need to add an error, but I don't want to add it to a specific property (I need you to fill out either a source_person or source_url, so I don't want to prepend the

Re: [Rails] errors.add_to_base

2011-06-13 Thread Martin Wawrusch
errors.add(:base,your text) perhaps? On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell pe...@pbell.com wrote: Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel: http://api.rubyonrails.org/classes/ActiveModel/Errors.html I need to add an error, but I don't want to add it to a

Re: [Rails] errors.add_to_base

2011-06-13 Thread Peter Bell
Awesome - perfect. Thanks! Best Wishes, Peter On Jun 13, 2011, at 6:11 PM, Martin Wawrusch wrote: errors.add(:base,your text) perhaps? On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell pe...@pbell.com wrote: Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:

[Rails] Problem with session on ajax request

2011-06-13 Thread Dimas Cyriaco
Guys, i'm having a problem similar with those reported with rails 3.0.4 and sessions with ajax requests. The problem is that i have an action that receives an ajax POST and sets an session. def test session[:user] = me end but the session vanishes and don't become available in the

[Rails] Re: Problem with session on ajax request

2011-06-13 Thread Dimas Cyriaco
Excuse me, i have a typo in the text. What i was trying to say is that anything I include in the session (within the POST request) is NOT propagate to the next requests. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this

Re: [Rails] [Devise] Display a custom sign_UP form anywhere in your app

2011-06-13 Thread Fernando Aureliano
Dont work. maybe because I'm already logged in when I try a new register? On Mon, Jun 13, 2011 at 2:35 PM, Tim Shaffer timshaf...@me.com wrote: Same way you'd display the form any other place I'd imagine... %= form_for(User.new, :as = :user, :url = registration_path(:user)) do |f| % %=

[Rails] Listing users with Devise

2011-06-13 Thread Fernando Aureliano
Someone already need to list the registrations of user from devise? I want to do this list, with the option of admin delete users. I did not found nothing about that on documentation =/ -- *Fernando Aureliano* -- You received this message because you are subscribed to the Google Groups

Re: [Rails] how to get the list of users' id

2011-06-13 Thread joanne ta
Sorry, I mean get the list of user id ... cuz my query depends on user.id .. so i want to have a list which is array to go through the album.. On Mon, Jun 13, 2011 at 1:53 PM, Michael Pavling pavl...@gmail.com wrote: On 13 June 2011 18:33, Yennie joanne0...@gmail.com wrote: @id =

Re: [Rails] [Devise] Display a custom sign_UP form anywhere in your app

2011-06-13 Thread Tim Shaffer
Which part doesn't work? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/m5PzyPsORQ4J. To post to this group, send email to

[Rails] error of looping in rails

2011-06-13 Thread Yennie
Hi, I am writing this code in purpose that i can i select image from the picture table and i want to get all the user so i can loop through user1 , user2 and display the pic on bowers.. def show_image @id = User.find(:all, :select = 'user.id') for id in @id @image =

Re: [Rails] [Devise] Display a custom sign_UP form anywhere in your app

2011-06-13 Thread Fernando Aureliano
The form appears, I put the data and go! Dont show any erros, but the data are not recorded On Mon, Jun 13, 2011 at 10:27 PM, Tim Shaffer timshaf...@me.com wrote: Which part doesn't work? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] How to convert Image To Text in RoR

2011-06-13 Thread rajeevkannav
Hello All I have too many scanned notes i need to convert them into text and then user may download that as pdf , How it can be done in RoR Please help Thanks in advance :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view

Re: [Rails] Listing users with Devise

2011-06-13 Thread Jatin kumar
Refer to this: http://www.tonyamoyal.com/2010/09/29/rails-authentication-with-devise-and-cancan-part-2-restful-resources-for-administrators/ and you are good to go. :) On Tue, Jun 14, 2011 at 5:43 AM, Fernando Aureliano m...@fernandoaureliano.com wrote: Someone already need to list the

[Rails] scaffold_controller generator

2011-06-13 Thread madth3
Hi: I'm new to RoR and I apologize if this is a dumb question but I've read the guides, searched the archives and found nothing. If I generate a model object and then the scaffold_controller the result is different than just running the scaffold generator (the _form partial has no fields in the