Re: [Rails] question

2011-06-29 Thread A Sarkar
Try these guys. www.rorguru.com they are the best. On Wed, Jun 29, 2011 at 5:54 PM, Donna Martini wrote: > Hi, I am looking for an expert ROR developer and having so much trouble > finding one. I am not interested in ODesk or elance. Are there any > developers in your group looking for work?

[Rails] question

2011-06-29 Thread Donna Martini
Hi, I am looking for an expert ROR developer and having so much trouble finding one. I am not interested in ODesk or elance. Are there any developers in your group looking for work? D. donna_email_logo "Being born was your gift. Living life is your challenge. Being the best you can be

[Rails] Need a Ruby on Rails expert

2011-06-29 Thread Donna Martini
I am looking for a Ruby on Rails expert willing to build out a new site which has been designed and is ready for programming. Anyone interested, please email for specifics. This is a one to two month project with the potential for long term employment. -- You received this message because you a

[Rails] Beginner's question: Rails 3 and MySQL on Windows

2011-06-29 Thread Barney
Hello, I've failed to get Rails 3 to connect to MySQL and have read that the current MySQL ( which is MySQL2) doesn't work with Rails 3. It isn't clear to me, from looking at the primarily *nix instructions on the net, how to do this in Windows: settings in database.yml, gems to install, wher

[Rails] Re: (urgent) How to install shoulda

2011-06-29 Thread Chirag Singhal
Great, happy to help -- 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/-/FdmeDfdHZLcJ. To post to this group, send email to rubyonrails-talk@googlegr

[Rails] Re: (urgent) How to install shoulda

2011-06-29 Thread Yennie
Thanks Chirag, it works fine now.. -- 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/-/KAdpXk8YmTgJ. To post to this group, send email to rubyonra

[Rails] Re: (urgent) How to install shoulda

2011-06-29 Thread Chirag Singhal
Make sure that all references to culture model are removed. You can use rails destroy model culture If that still doesn't solve the issue, then please post your test here along with the controller and the model used in the test. -- You received this message because you are subscribed to the Go

[Rails] Re: (urgent) How to install shoulda

2011-06-29 Thread Yennie
Yes, I am using Rails 3. I did successfully install the shoulda. thank you so much. but i got some error "17) Error: test_should_get_update(UsersControllerTest): ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: cultures: DELETE FROM "cultures" WHERE 1=1 " but I did delete t

[Rails] Re: (urgent) How to install shoulda

2011-06-29 Thread Chirag Singhal
Looks like you are using Rails 3. In that case, you should be specifying the gem dependency in your Gemfile. Remove the lines you have added to your environment.rb or application.rb file and the following to your Gemfile gem 'shoulda' or better still, define it as a test environment dependency

[Rails] Re: Trying to upgrade a rails app from 2.3.2 to 2.3.11

2011-06-29 Thread Chirag Singhal
Rename your template from new.rjs.js to new.js.rjs and it should 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/-/rxdCYx2GXiwJ. To post to th

[Rails] Re: Error of DEPRECATION WARNING

2011-06-29 Thread Yennie
can u help me about this question http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f277b0fadde17bda?hl=en -- 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

[Rails] Re: Error of DEPRECATION WARNING

2011-06-29 Thread Chirag Singhal
That's not an error, that's a deprecation warning. The plugin is very old and doesn't seem to be maintained. Probably you can have a look at it's forks on github and pick a more updated version. https://github.com/thorny-sun/prawnto/network If there aren't any other deprecated methods used in th

[Rails] (urgent) How to install shoulda

2011-06-29 Thread Yennie
Hi, I have trouble about install Shoulda, can someone give me some instruction to install it I try some .. it ask me to add those code Rails::Initializer.run do |config| config.gem "shoulda", :lib => "shoulda" end then i cannot do rake to test units. it gives me error of /usr/local/lib/r

[Rails] Trying to upgrade a rails app from 2.3.2 to 2.3.11

2011-06-29 Thread Jay
Hi, I'm trying to upgrade a rails app to 2.3.11 (from 2.3.2) and I'm seeing some odd behavior. I have a link_to_remote call that works in 2.3.2 but not in anything above that. What I mean by not working is that in my controller I have a new method that I want to handle a javascript new call and

[Rails] Error of DEPRECATION WARNING

2011-06-29 Thread Yennie
Hi, I Have a strange error when i type the command "rake db:migrate " Can you help to solve this error or give me some advices the error is: DEPRECATION WARNING: Rake tasks in /home/joanne/Desktop/picto/vendor/ plugins/prawnto/tasks/prawnto_tasks.rake are deprecated. Use lib/tasks instead. (call

[Rails] How do you test for something in a certain area of the page with RSpec / Capybara? (view test)

2011-06-29 Thread David Zhang
I'm used to doing it "displays the controls link" do render rendered.should have_selector("a#controls") end ..or using rendered.should have_content, but how would you test for something specifically in an area of the page? e.g. rendered.should have_content("Admin") in the "div#logo_area" o

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Zhang
Thanks again - I just used the model directly. -- 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/-/i6n0tRJJ69kJ. To post to this group, send email to

[Rails] Re: Escaped Links in Rails3

2011-06-29 Thread Andrew Skegg
No Name writes: > > I am working on a site that just upgraded to Rails 3 which for some > reason displays escaped links as /'s instead of forward > slashes.any idea if this will hinder google or any other bots > ability to crawl the website? Any way to fix this easily? Any and all > help wi

Re: [Rails] Re: rails 3 nested routing without resources

2011-06-29 Thread Conrad Taylor
On Tue, Jun 28, 2011 at 4:18 AM, tfp44 wrote: > Hello all, > > Don't suppose anyone has a moment to give me a pointer on this one? > > I've tried the following: > > namespace "levelx" do > namespace "levely" do > namespace "levelz" do > root :to => 'levelz#index' > end > root

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 1:46 pm, David Zhang wrote: > ...That's odd.  I just read The RSpec Book, and it explains how double isn't > sufficient when you're testing something related to form_for.  The book, in > its example, says to use mock_model("Message").as_new_record... > and anyway in my case neither meth

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Zhang
...That's odd. I just read The RSpec Book, and it explains how double isn't sufficient when you're testing something related to form_for. The book, in its example, says to use mock_model("Message").as_new_record... and anyway in my case neither method is working. If I use mock_model, I get

[Rails] 2 user types - shared sessions controller?

2011-06-29 Thread Jason Clark
All - Don't you love it when someone prefaces their discussion with being new to Rails? I have a common user type for my application, and recently added a second model for a different type of user - different rights, different tools, etc. I'd like to keep the two models separate - and wasn't con

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 12:16 pm, David Zhang wrote: > Thank you very much!  So I guess it was a simple issue. > > But what would I do for the form_for @user_session?  I tried... > >     before(:each) do >       assign(:user_session, mock_model("UserSession").as_new_record) >     end > > But that returns the

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Zhang
Thank you very much! So I guess it was a simple issue. But what would I do for the form_for @user_session? I tried... before(:each) do assign(:user_session, mock_model("UserSession").as_new_record) end But that returns the error: Failure/Error: assign(:user_session, mock_model(

[Rails] Re: rails 3 nested routing without resources

2011-06-29 Thread Chirag Singhal
A direct conversion to the routes you had in Rails 2, would be something like this: match 'level1/level2/level3/:action', :controller => 'level1/level2/level3' match 'level1/level2/:action', :controller => 'level1/level2' match ':controller/:action/:id' There would be a better way of doing th

[Rails] Re: RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Chelimsky
On Jun 29, 11:07 am, David Zhang wrote: > In my user_sessions_controller: > > class UserSessionsController < ApplicationController >   before_filter :require_no_user, :only => [:create, :new] >   before_filter :require_user, :only => :destroy > >   def new >     @user_session = UserSession.new >  

[Rails] Plugins from Vedor not loaded after bundler is installed

2011-06-29 Thread Ashok Vijayendra
Hi, We are in a process of upgrading to rails 3 from rails 2.3.11. As a first step towards that, we are making the application to work with bundler. After doing bundle install,When I try to do script/console, I see none of my vendor plugin code is loaded, I get not defined error. can someone h

[Rails] Calling out Ruby Engineers: ModCloth hiring several engineers ~ referral bonuses are available

2011-06-29 Thread Leah Toth
ModCloth is heavily recruiting for Ruby & Ruby on Rails Engineers. We are a growth-oriented company (10,000% growth in the last three years). Our offices are located in the Strip District and we offer the opportunity to grow with this forward-thinking company looking to shake up the world of e-co

[Rails] RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)

2011-06-29 Thread David Zhang
In my user_sessions_controller: class UserSessionsController < ApplicationController before_filter :require_no_user, :only => [:create, :new] before_filter :require_user, :only => :destroy def new @user_session = UserSession.new @message = "Hello." end def create @user_

Re: [Rails] Stange problem with Routes

2011-06-29 Thread Fernando Aureliano
solved this by redoing the button delete. Was the same script, but work Crazy O.O Thanks everybody! On Tue, Jun 28, 2011 at 6:30 PM, Chris Kottom wrote: > You need to post snippets of your view and controller code in order to get > a full assessment, but if I were trying to diagnose this on

[Rails] Bob Clewell wants to chat

2011-06-29 Thread Bob Clewell
--- Bob Clewell wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f21ede377a-70949d830e-freBZA5fpIuiLDqn2XbQNwawR6k You'll ne

[Rails] Bob Clewell wants to chat

2011-06-29 Thread Bob Clewell
--- Bob Clewell wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f21ede377a-d7fd4f0723-H9AgzRQhCrP1oYIQZOxCHYEka74 You'll ne

Re: [Rails] Rails double submit -> double post -> duplicate data

2011-06-29 Thread Miquel Cubel
Hi, Works perfectly! Thanks a lot. El 29/06/2011 13:57, Walter Lee Davis escribió: On Jun 29, 2011, at 7:35 AM, Jim Ruther Nill wrote: On Wed, Jun 29, 2011 at 7:04 PM, Miquel Cubel wrote: Hi, We are encountering occasions where users post twice or more a form, basically we h

Re: [Rails] Rails double submit -> double post -> duplicate data

2011-06-29 Thread Walter Lee Davis
On Jun 29, 2011, at 7:35 AM, Jim Ruther Nill wrote: On Wed, Jun 29, 2011 at 7:04 PM, Miquel Cubel wrote: Hi, We are encountering occasions where users post twice or more a form, basically we have detected two situations: a) The user push twice enter b) The user push double cl

Re: [Rails] Rails double submit -> double post -> duplicate data

2011-06-29 Thread Jim Ruther Nill
On Wed, Jun 29, 2011 at 7:04 PM, Miquel Cubel wrote: > Hi, > >We are encountering occasions where users post twice or more a form, > basically we have detected two situations: >a) The user push twice enter >b) The user push double click on button "save" or "submit" > > Simplest soluti

[Rails] Rails double submit -> double post -> duplicate data

2011-06-29 Thread Miquel Cubel
Hi, We are encountering occasions where users post twice or more a form, basically we have detected two situations: a) The user push twice enter b) The user push double click on button "save" or "submit" We consider that this becomes a problem when creating (because we duplica

[Rails] Re: rails 3 nested routing without resources

2011-06-29 Thread tfp44
Hi Chirag, Thanks for the response. Equivalent routes from rails 2 that seem to have worked fine are: map.connect 'level1/level2/level3/:action', :controller => 'level1/ level2/level3' map.connect 'level1/level2/:action', :controller => 'level1/level2' map.connect ':controller/:action/:id' Furt