Displaying 20 results from an estimated 47 matches for "actiondispatch".
Did you mean:
action_dispatch
2010 Dec 15
2
Error reverse engineering MySQL with RMRE
...xperts... please help!
Thanks a ton in advance!!
===
Ruby version 1.9.2 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.2
Rails version 3.0.3
Active Record version 3.0.1
Action Pack version 3.0.3
Active Resource version 3.0.3
Action Mailer version 3.0.3
Active Support version 3.0.3
Middleware
ActionDispatch::Static
Rack::Lock
ActiveSupport::Cache::Strategy::LocalCache
Rack::Runtime
Rails::Rack::Logger
ActionDispatch::ShowExceptions
ActionDispatch::RemoteIp
Rack::Sendfile
ActionDispatch::Callbacks
ActiveRecord::ConnectionAdapters::ConnectionManagement
ActiveRecord::QueryCache
ActionDispatch::Cookies
Ac...
2010 Nov 19
1
Help: delegated association 'App' returning ActionDispatch::Integration::Session instead
...pp to an undefined variable:
Bar.all.each do |p|
p.update_attribute("app_id", my_undefined_variable)
end
After doing this, I get:
NameError: undefined local variable or method
`my_undefined_variable'' for main:Object
and
for whatever reason Foo.first.app is now returning an
ActionDispatch::Integration::Session object -- not only in the
console, but through the web, as well.
How can I correct this?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3...
2011 Jul 31
2
Looks like an error in docs for ActionDispatch::Routing::Mapper::Resources
Please take a look at this page:
http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Resources.html#method-i-resource
It reads:
:path
Set a path prefix for this resource.
resources :posts, :path => "admin"
All actions for this resource will now be at /admin/posts.
For me (Rails 3.0.9) it routes to just "/admin", not "/ad...
2010 Jun 12
0
[PATCH] ActionDispatch MemCacheStore violates encapsulation principle
When pass :cache param to ActionDispatch::Session::MemCacheStore, it should
be removed from options, otherwise it remains "published". This violates the
OOP encapsulation principle.
I created a LH ticket with a patch
http://bit.ly/cGDaWs
Luca
--
lucaguidi.com
twitter.com/jodosha
--
You received this message because you are...
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
Hi,
I just encountered a bit of an issue where we call request.params of
an ActionDispatch::Request inside a rack middleware right before a
Rails 3.0.3 app. The issue is that the path_parameters never appear
in the parameters hash if you call request.params before the rails
app.
It seems that that the requests.params method memoizes itself in
"action_dispatch.request.parameters&qu...
2013 Mar 22
0
Should to_io be added to ActionDispatch::Http::UploadedFile?
...<https://github.com/rest-client/rest-client/issues/144#issuecomment-14876580> we''re
trying to handle objects that behave like IO. Some have suggested that
respond_to?(:read) is a poor test of this and have suggested using
IO.try_covert(obj) instead. My counter example for this is
ActionDispatch::Http::UploadedFile. I''m wondering if there would be any
support for adding this method? I''d be happy to craft a pull request.
See: http://www.ruby-doc.org/core-2.0/IO.html#method-c-try_convert
Justin Coyne
--
You received this message because you are subscribed to the Googl...
2013 Mar 26
2
Using rack.hijack with ActionController::Live
Pinging @tenderlove
Some questions on how best to move forward with this:
1.) AC::Live is making use of the stream object on
ActionDispatch::Response. Should the rack.hijack_io object be used instead
of this in AC::Live or should ActionDispatch::Response be changed to use
rack.hijack_io?
2.) What do you think about changing AC::Live to work with adapters? I
suspect the primary use case for AC::Live will be for websockets, it would...
2012 Mar 04
4
How to retrieve a FileBlob from 'ActionDispatch::Http::UploadedFile' instance?
I have used ''remotipart'' gem to upload files asynchronously to server side.
The instance passed to the server side is of ''UploadedFile'' .
The Rails API mentions all the methods( like read(), open() ) and
attributes for the class, however I am not sure how to retrieve the File
and store it on the database. The documentation hardly says anything.
Googling
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t available.
Remember to require the classes for all objects kept in the session.
(Original exception: uninitialized constant ActionController::Flash::FlashHash [NameError])
The environment is
Rails 3.2....
2010 Nov 17
3
How to use request helpers outside of controller specs?
I asked this questions on some other places before, but have found no
solution yet. I''d like to include the request helper (from
ActionDispatch::Integration::RequestHelpers, like post and xhr
methods) also in some specs outside of my controller specs. The
problem is that these request helpers are only included in spec/
controller and when a controller is described.
What do I have to include/require in those specs?
Best regards,
Kai
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there,
I posted this issue
<https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at
the carrierwave-group, but I''m beginning to think this rather is a
rails-issue than a problem with carrierwave. The problem''s this:
I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my
article_controller i
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
Hey guys,
As most of you know, Rails 3.1 introduces query caching for
ActiveRecord. Great change all-in-all, but for those of us with IT
department mandates for using MySQL (yeah, yeah, I know...), it''s kind
of a mixed bag.
I need to disable query caching in a project I''m building based on
3.1. I''ve tried a couple different approaches, both without any
success. I
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?
--
You received this message because you are su...
2011 Jul 14
0
Converting an Uploaded File to a string while maintaining binary data
Ok so it boils down to this I uploaded a picture into a
ActionDispatch::Http::UploadedFile and want to convert it to a string
before I send it off google storage. When I do this it complains about
having null characters.
I had the same problem when I was experimenting with files from my hard
drive with the same function. I was able to do it with:
File.open( '...
2012 May 13
1
is assert_select_rjs deprecated in Rails 3.1 ?
I have seen it in 3.0.9 doc (
http://apidock.com/rails/v3.0.9/ActionDispatch/Assertions/SelectorAssertions/assert_select_rjs
)
but it''s not mentioned in the latest guide (
http://guides.rubyonrails.org/testing.html#integration-testing-examples)
if deprecated how can I check the view from an Ajax call
( assert_match + gsub could work ? ... )
am I missing any doc ?...
2013 May 13
0
Middleware example from Railscast #151 doesn't work as expected. Need help.
...iddleware.rb
## this is an initializer file that I created. It''s goal is to add my
## middleware "ResponseTimer" to the middleware stack:
module Demo
class Application < Rails::Application
config.after_initialize do
Rails.application.config.middleware.insert_after(ActionDispatch::Callbacks,
"ResponseTimer")
end
end
end
Now I check whether "ResponseTimer" is in the middleware stack, and it
is:
C:\myapp>rake middleware
...
use ActionDispatch::Callbacks
use ResponseTimer ## ok, it is in the middleware stack
use ActiveRecord::ConnectionAdapters::C...
2011 May 16
2
Cannot get multipart => true , running well in my form when using remote => true
..."description"=>"testing image
upload"},
"commit"=>"Add", "action"=>"create", "controller"=>"clips",
"locale"=>"en_GB"}
I should have the image upload data :
"image"=>#<ActionDispatch::Http::UploadedFile:0...
@original_filename="...", @content_type="image/jpeg", @headers=...
@tempfile=#<File:/var/folders/NK/N...>>
what could be wrong ? is the remote-true incompatible ?
--
You received this message because you are subscribed to the Google Groups &...
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
...n `new''
app/controllers/upload_files_controller.rb:28:in `create''
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"2JJGtRXjWCZlPNhQdx6wOW4xvTseiRaXNylnUYvA5v4=",
"upload_files"=>{"inventory"=>#<ActionDispatch::Http::UploadedFile:0x2fd8940 @original_filename="1_Inventory.xlsx",
@content_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@headers="Content-Disposition: form-data; name=\"upload_files[inventory]\"; filename=\"1_Inventory.xlsx\&...
2012 Jun 08
1
[Rails 3.2.5] Rails: unit test fixture_path : fixture_file_upload cannot find the file ...
I am trying to perform a test unit, using FactoryGirl
include ActionDispatch::TestProcess
FactoryGirl.define do
factory :article do
.......
photo { fixture_file_upload ''/files/test.jpg'', ''image/jpg'' }
end
end
IN mt test_helper.rb I defined the fixture_path
def fixture_path
File.dirname(__FILE__) + "/fixtures/"...
2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
...params => {
"resource"=> {
"resource_type"=>"document",
"resource_name"=>"My Rails Doc",
"source_id"=>"Dropbox"
},
"resource_document"=> {
"resource_document"=> #<ActionDispatch::Http::UploadedFile:0x007f8e919d06f8
@content_type="text/plain",
@headers= "Content-Disposition:
form-data; name=\"resource_document[resource_document]\";
filename=\"rails_local_env_setup.txt\"\r\n
Content-Type: text/plain\r\n&...