similar to: restful route paths... has something changed?

Displaying 20 results from an estimated 40000 matches similar to: "restful route paths... has something changed?"

2010 Apr 27
4
Translated (language-aware) routes in Rails application
Hi, I''d like to have translated languate-aware routes in my application, like: /projects/5/permissions => locale "PL" /projekty/5/pozwolenia => locale "PL" Is there any way to achieve it with RESTful routes? I have done it manually with named routes, but it''s overwhelming with over 300 routes :D Also tried namespace (yeah, didn''t work) and
2011 Mar 07
3
.rvmrc file not working?
hello, i am trying to install gemsets but my .rvmrc file not working so i have create gem sets with the command rvm gemset create rails3 but when i am using rvm info its not showing the gemsets in the environment.. this is the content of .rvmrc file rvm 1.9.2@rails3 --create..help me guys.. thanks nishant -- You received this message because you are subscribed to the Google Groups "Ruby
2010 Sep 27
3
streaming response body to client?
So I''d like to stream my response body to the client. At least under Rails2, it looks like you can pass a Proc to render :text, to do that. I am in a Rails2 app right now, but will upgrade to Rails3 sometime in the next couple months, so don''t want to set myself up for failure. Anyone know the status of streaming responses in Rails3? Is it possible? Is there a different API
2012 Jun 26
2
Error with rake command
I am using Rails 2.3.8 application and when I enter rake command it gives following error : ms@ms-HP:~/OpenStreetView$ rake WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/ms/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb rake
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all, i have installed rails 3 using RVM . the prob is now i have two parallel projects where one is in 2.3.5 and another is in rails3. i use Mac o x 10.6.3 mysql :Server version: 5.1.56 MySQL so can i switch in between rails3 and rails 2.3.8?? this is my gem list... actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5) actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all. I have two apps. One is a rails3 app and the other is a rails 2 app. Using proxying I am routing actions in the myapp.com/foo to the rails2 app. It almost works! I can set a session variable and a cookie variable on the first app (myapp.com) and then read them on the second app (myapp.com/foo). It only works the first time though. If I go back to myapp.com and then revisit
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of searching ive managed to get a little bit of Authlogic working. I''m able to register a user, login & logout. Now, I would like to add more features, get more of authlogic working. I''m using Railscast EP 160 as my reference. Portions of the code found on the tutorial throw errors: Eg: <!--
2011 Feb 10
3
ror 3 + apache2 + passenger = apache test page
I set up Passenger on manual - http://wiki.rubyonrails.org/deployment/apache-passenger Passenger and Apache install without errors. /etc/httpd/conf/httpd.conf: >> ... >> LoadModule passenger_module >> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/ >> ext/apache2/mod_passenger.so >> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2 >>
2010 Jun 21
9
[BUG] Segmentation fault
First of all, I use RVM and I installed ruby-1.9.2-head, which I used to create a new rails3 gemset. Then I changed to that gemset with rvm use 1.9.2-head@rails3 and I ran bundle install over the following Gemfile: source ''http://rubygems.org'' gem ''rails'', ''3.0.0.beta4'' gem ''sqlite3-ruby'', :require =>
2010 Sep 21
7
Ajax CSRF in Rails3
I''m using rails3. It does not seem to check the authenticity_token when doing a POST using Ajax. I traced this to: module ActionDispatch class Request < Rack::Request ..... def forgery_whitelisted? get? || xhr? || content_mime_type.nil? || ! content_mime_type.verify_request? end end so you don''t check if its a get? or a xhr? (ie ajax request). Is this correct? --
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi, My system has the following : MacOs Leopard Rails 3 Ruby 1.9 Mysql 5.1.58 mysql2 ruby gems My problem is that when i give "rails server", the task aborts with the foll error rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/ railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
2012 Feb 05
4
Rspec and restful routes
Hi all, I''m trying to test that my users show page renders. The resource has the route /users/:id How would I code that for an Rspec test? So far I''ve tried these four ways: it "should have a users show path" do get user_path(:action => ''show'') end it "should have a users show path" do get user_show_path end it "should have
2011 Mar 26
2
Rails 3 + SSL
After reading tons of posts about buying certs, etc, I''m still confused. Please point me in the right direction. Here''s the question: I have a rails3 site (www.mysite.com). I want to have some pages use ssl, and some not. It appears the require_ssl approach is pre-Rails3 and there are other alternatives. Most of the posts I read talk about using a diff domain for ssl
2010 Aug 12
2
rails 3- Could not find generator session.
Hello, I am trying to use Authlogic in Rails 3. when I run " rails g session admin_session" to create the session, I get- ====================== "Could not find generator session." ====================== I''m using Rail 3 RC and working off the Rail3 Branch now ====================== GemFile: gem ''authlogic'', :git =>
2010 Aug 30
1
in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
I''m a newb here and probably shouldn''t be using Rails3 yet to start with, but for some reason I was feeling adventurous. I''m also learning to use rspec along the way and things ''were'' working out with my ''rake spec'' until I tried to follow some examples for test Authlogic with rspec. I ''think'' what started the
2010 Aug 08
1
Why Rails 3 installation is so pane full
Hi all Why Rails 3 installation is so pane full...? I am using fedora 10, ruby 1.8.6 rails 2.3.5/2.3.8 Now want to upgrade to rails3 i tried so many links... but nothing find essay.. for Rails 3 problem in ruby installation please suggest good links ... Thanks.... Regards Shyam 971-618-9650 shyam.heroku.com -- You received this message because you are subscribed to the Google Groups
2011 Dec 02
1
How to implement ActionMailer callbacks for rails3?
Hi, Is it possible to implement callbacks(like before_deliver :some_methodes, after_deliver :other_methods) with ActionMailer in Rails3? Please somebody help me or give me an idea :) Already I saw http://railscasts.com/episodes/206-action-mailer-in-rails-3 but it I like to do it as callbacks -- Best Regards Abdul Barek Senior Software Engineer -- You received this message because you are
2012 Jan 15
2
ruby-debug19 error undefined symbol: ruby_current_thread
I am trying to deploy a Rails app ( Rails 3.0.9 / Ruby 1.9.2 ) in production (Debian 6) it''s running fine in development mode on localhost ( OSX) I am getting this error from Passenger : undefined symbol: ruby_current_thread /var/www/vhosts/mydomain.com/rails/testsbga/shared/bundle/ruby/ 1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread -
2011 Jan 12
1
gem and rails3: LoadError
Hi everybody, I''m trying to use the prawn gem into a new rails3 application on debian. What I did: As root: - install rubygems, from http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz - gem install rails - gem install prawn - gem install pdf-reader - gem list | grep prawn => prawn (0.8.4) prawn-core (0.8.4) prawn-layout (0.8.4)
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3. My Rails2 app uses searchlogic heavily. After googling i''ve come to know that searchlogic is not compatible with Rails3 and need to use meta_search instead. But i havent quite understood the usage of meta_search vis-a-vis searchlogic. If i have a User model with :name and :address fields, i am not able to use the following