-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I'm trying to use url_for(:back) to create a redirect leading back to a previous page upon a user's logging in.
I've had it working successfully for when the user just goes to the login page on his or her own. However, when the user is redirected to the login page due to accessing a page…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm stumped on what's causing this. I get this error and stack trace in all my functional tests where I call 'post'. Here is the full stack trace:
7) Error:
test_should_validate(UsersControllerTest):
ArgumentError: wrong number of arguments (1 for 0)
/Users/hisham/src/rails/ftuBackend/vendor/rails/actionpack/lib/action_controller/routing/route…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I recently installed a fresh development setup on my laptop and now notice that my instances of spork take several minutes to start up. This is also most likely of the RSpec and Cucumber tests start up times running super slow.
I ran in diagnostic mode with the -d flag and received the output below…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a simple rails 2.3.4 application I am trying to get running with rails 3.0.0-beta2. I have the server running and all my links and navigation showing, however for some reason the content of my views is not displaying.
When I navigate to Site/index the html in my index.html.erb in my site…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
The latest version of rails installed on my mac is 3.0.0.beta
gem list returns
rails (3.0.0.beta, 2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.2.6)
I want to create a new project using version 2.3.5
So I run: rails _2.3.5_ myProject
But it returns the following error
$ rails _2.3.5_ photosbackup
/Library/Ruby/Site/1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I apologize if this question is slightly subjective... I am trying to figure out the best way to test Rails 3 Engines with Cucumber & Rspec. In order to test the engine a rails 3 app is necessary. Here is what I am currently doing:
Add a rails test app to the root of the gem (myengine) by…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
What is the best practice when creating a rails project
1 - is it good to use ruby gems
2 - or is it good to use ruby plugins (as almost all the gems has their plugin versions)
and what are the strengths and weaknesses of eachoption
consider we are creating the rails project with rails…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I started a rails application from scratch, using Rails 2.3.5, and installed oauth-plugin. The installation was done by running script/plugin install git://github.com/pelle/oauth-plugin.git.
Now, when I try to start the server, I get the following errors:
=> Rails 2.3.5 application starting on…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on a project that is considering using Cassandra as a database. We would like to eventually migrate to Cassandra even if we use MySQL to start with, given its scalability. I know that big companies like Facebook, Digg, and recently Twitter is using Cassandra, but I don't believe any…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have migrated my application from rails 2.3 to rails3 and i have a problem with paperclip.
I saw there was a branch for rails3 on paperclip git.
So I added "gem 'paperclip', :git = 'git://github.com/thoughtbot/paperclip.git', :branch = 'rails3'" into the Gemfile and launch the command bundle…
>>> More