similar to: Cucmber: Mysql::Error: query: not connected: ROLLBACK

Displaying 20 results from an estimated 400 matches similar to: "Cucmber: Mysql::Error: query: not connected: ROLLBACK"

2010 Jul 22
1
Updates to cucmber-vhost - guineapigs wanted! :)
Hi all, For those of you that are using cucumber for Continuous Integration or similar I've created a set of steps that enable you to use cobbler and cucumber to auto-provision using Libvirt. I've just made some changes to the code however I don't have access to all the hardware/software required to test it fully. If you are able to, please check out the code from
2011 Jul 14
0
subclasses with inherited_resources?
I''m trying out inherited_resources and so far so good. However, one problem I''ve run into is that it''s very difficult to customize inherited_resource behaviour in subclasses. Looking through the source I see it uses things like undef_method and class_attribute. For example, if I have the following controllers: class ItemsController inherit_resources actions :new,
2009 Jan 07
0
how rails insert object id to database?
[4;35;1mUser Create (0.5ms) [0m [0mINSERT INTO `users` (`name`, `avatar_file_name`, `avatar_file_size`, `created_at`, `updated_at`, `avatar_content_type`) VALUES(''hello'', ''Screenshot.png'', 253800, ''2009-01-08 08:27:19'', ''2009-01-08 08:27:19'', ''image/png'') [0m [paperclip] Saving attachments. [paperclip]
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just wanted to check if someone can confirm this as a bug in the Rails 3 beta gem. config/routes.rb contains: get ''login'' => ''session#new'' post ''login'' => ''session#create'', :as => :login GET /login works fine: Started GET
2007 Sep 18
2
rSpec / Nested Routes / Mocks
I''m having a terrible time trying to test a nested route with rSpec. I can''t seem to tell rSpec to expect the call @item.user. The following error message plagues me not matter how I try to fuss with the mock: Spec::Mocks::MockExpectationError in ''ItemsController handling POST / items should redirect to the new course on successful save'' Mock
2006 Aug 24
2
Design questions on creating digg.com-like URLs (are they considered RESTful?)
Hi everyone, I''m working on creating a site that functions similar to digg.com (please no "no more digg clones" remarks please! :) ). One thing I really like about digg is there URLs are very nice to read and I would like to emulate that without having a lot of actions spread out all over my application. So in my app I have three main resources: Users, Tags, and Items
2009 May 03
0
HTTP Auth 401 Even on Valid Login
I can''t understand why authenticate_or_request_with_http_basic keeps failing even though I am entering the correct info. If I try to access /admin/items/new, I enter the correct info but I keep getting prompted. The strange part is that when I cancel out, I get "HTTP Basic: Acce". Here''s the controllers: class Admin::BaseController < ApplicationController
2007 Mar 21
0
Getting the module name with ObjectSpace...
Hey :) I''m trying to create a method for making a sitemap dynamically. It works great for flat sites where you simply have your controllers in the app/controllers directory. In this case, I can extract the controller names like, @controllers ObjectSpace.subclasses_of(ActionController::Base).each do |obj| @controllers["#{obj.controller_name}"] = obj end However,
2012 Mar 05
1
Twitter like route
Hi, I have this route that let me build custom url for users like /thisismyname, and it works fine. But when I look at the log there is something I don''t like... When I hit /gregory this is what is happenning: 1. Going to public_profile#public # Good 2. hitting /assets and trying to find a user with asset token # Not good I thought my constraints would avoid this but it
2009 Apr 09
0
HTTP Digest Authentication not working
Hi to all, I''ve created a new project with Rails 2.3.2 and literally copied the HTTP Digest Authententication example from the documentation into a SecretsController: class SecretsController < ApplicationController Users = {"dhh" => "secret"} before_filter :authenticate def secret render :text => "Password Required!" end private
2007 Oct 26
3
Specing with Subdomains as Account Keys
How do you go about implementing and rspecing subdomains as account keys? I''m sure that this must be an issues for others as well. So I have an app using subdomains as account keys. The Application Controller sets up @current_company in a before filter. Everything is done within the context of the @current_company. After reading about Demeter''s Revenge
2010 Apr 26
2
woriking under webrick but not under passenger
Hi! I have just added login feature to my rails application (followed the instruction from (Agile Web Development with Rails) but now I am getting strange errors (looks to me like some kind of routing problem) under the passenger/apache. The error is: 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. From the log:
2008 Jan 21
2
Application error - SQL_AUTO_IS_NULL
I have a simple controller (browse) that uses a "books" action to display a list of books (stored in a mysql db) and a "book_details" action to display the details of a particular book (according to the book''s mysql id). The book_details action is accessed via a link from the books action via the following snippet: <a href=<%=
2008 Oct 03
1
fragment caching with search box
I''m trying to setup some fragment caching which works fine for the index but i''m not sure how to ignore the caching if they are searching the index results. my code in short: ItemsController def index @items = Item.search(params[:search], params[:min_rank], params[:max_rank], params[:classification_id], ...) end index.html.erb <% cache (''items'',
2007 Oct 15
3
Spec::Rails::DSL::HelperEvalContextController: missing defau
Just created a new project and this is the error that I am getting when I try to run my rspec tests: Spec::Rails::DSL::HelperEvalContextController: missing default helper path spec/rails/dsl/helper_eval_context_helper Spec::Rails::DSL::ViewExampleController: missing default helper path spec/rails/dsl/view_example_helper [4;36;1mSQL (0.000138) [0;1mSET SQL_AUTO_IS_NULL=0 [4;35;1mSQL
2010 Oct 28
4
how do i find the trigger of an 'unknown' action
hi , in my logs i see that: Completed in 1480ms (View: 267, DB: 90) | 200 OK [http://192.168.2.9/xyz/99] SQL (1.4ms) SET NAMES ''utf8'' SQL (0.7ms) SET SQL_AUTO_IS_NULL=0 Processing xyzsController#images to gif (for 192.168.2.3 at 2010-10-28 15:22:35) [GET] Parameters: {"id"=>"loading"} ActionController::UnknownAction (No action responded to
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1. ActiveRecord::JDBCError: Generated keys not requested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate() or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0 This occurs not matter what application I run it in to e.g. rake, rails
2009 May 01
4
Can't get to an action in a RESTful controller
Folks, I am using the restful_authentication plugin. This creates the users controller which is declared as a resource in routes.rb as below map.resources :users Now in the UsersController I have created an action to resetpwd that I am trying to get to from the login page when the user clicks "forgot password". However, when I do that the log file tells me that the call to
2006 Apr 05
1
select in *.rhtml
I''m trying to get a select box of categories to appear in my items views after I created everything using generate scaffold, but I can''t get the categories to appear in my forms. class ItemsController < ApplicationController def new @item = Item.new @category = Category.find_all end ... class Item < ActiveRecord::Base belongs_to :category end class
2008 May 08
0
Controller/action not working in url
Hey guys, i am facing some problems in calling an action. see details: in sale_items controller, i have a function def saleedit --code-- render ( :action => ''saleedit'') end and i have a file in view/sale_items/saleedit.html.erb. okay. now i have one more view view/sale_items/new.html.erb. in this file i have a form like this: <% form_tag url_for(:action =>