Displaying 20 results from an estimated 600 matches similar to: "rails 3 initialize module, running cucumber"
2013 Jun 28
1
[HELP PLEASE!] attachment_fu and aws-s3
Hi,
Im developing an image upload using pothoven-attachment_fu (3.2.8)
and aws-s3 (0.6.3). I want to store my files in Amazon S3.
I follow all the instructions using attachment_fu and s3
my model
has_attachment :content_type => :image,
:storage => :s3,
:max_size => 1.megabyte,
:thumbnails => {
:thumb =>
2011 Jul 05
0
Problem in accessing bucket of my AWS S3 account
I tried to establish connection to my aws s3 account like this in my irb
console -
AWS::S3::Base.establish_connection!(:access_key_id => ''my access key'',
:secret_access_key => ''my secret key'', :server => "
s3-ap-southeast-1.amazonaws.com")
And it works well and prompt this -
=> #<AWS::S3::Connection:0x8cd86d0
2006 Nov 30
1
Uninitialized Constant Using New S3 Library
I am trying to use the new S3 library (thanks Marcel!) but I am
getting an Uninitialized Constant message:
>> Service.buckets
NameError: uninitialized constant Service
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/
lib/active_support/dependencies.rb:100:in
`const_missing_not_from_s3_library''
from
2010 Oct 29
8
Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems
Hi all, I''ve got a feeling from other posts that this should be very
simple, but believe me I''ve looked around many tutorials / blogs, but
still cant even get the most basic setup working with paperclip and s3.
I am however pretty new to Rails, so could be doing something dumb.
-------
Firstly, to install and use paperclip and aws-s3 I''ve got them both in
by Gemfile:
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
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
2012 Sep 09
2
mattr_accessor inside a class
Rails extends Ruby with mattr_accessor (Module accessor). As Ruby''s
attr_accessor generates getter/setter methods for instances,
mattr_accessor provide getter/setter methods at the module level. In
below example, you see that mattr_accessor declared in the class
context of LookupContext. It''s declared in class, not module. However,
modules are defined in LookupContext, for
2011 Sep 20
0
What's the difference between mattr_accessor and cattr_accessor in ActiveSupport?
Hi,
I was reading source code of mattr_accessor and cattr_accessor in
ActiveSupport and found out that the method definitions are all most
identical. Except cattr_writer accepts a optional block.
I googled and read
http://stackoverflow.com/questions/2203800/difference-between-mattr-accessor-and-cattr-accessor-in-activesupport.
That guy had the same question as me, but no one answered the question
1998 Nov 16
5
Solaris make for 0.63 failing
I shouldn't try to do this on Monday morning. Can anyone suggest why the make
for R 0.63 is failing for me under Solaris (SunOS 5.6).
Paul Gilbert
...
creating src/scripts/html2dos
creating tests/Makefile
creating tests/Examples/Makefile
creating src/include/Platform.h
R is now configured for sparc-sun-solaris2.6
Source directory: .
Installation directory: /usr/local
C
2011 Feb 05
1
ActionMailer::Base.default_url_options
Hi,
I want so set a default url for ActionMailer. I know,
ActionMailer::Base.default_url_options is deprecated, so I use
config.action_mailer.default_url_options = {
:host => "localhost"
}
in my environments (test.rb, production.rb, ...). The problem is, I get a
deprecation error and rails won''t start. I have no solution...
Any hints for me?
Testing started at
2007 Dec 12
0
default_url_options
Hi,
i recently added a def default_url_options to application.rb (used by
url_for , *_path etc). My method references request (eg
request.domain) . But when I spec a controller, its dies in
default_url_options with nil.domain, Is there a way for it to see
"request"?
I prefer to not have to stub it on every example.
linoj
2008 Sep 02
3
Unable to set default_url_options[:host] for Action Mailer
I am attempting to provide ActionMailer with the request host needed to
generate a url.
Here is my code:
In config/environments/development.rb
config.action_mailer.default_url_options = { :host =>
"development_url.com" }
and in config/environments/production.rb
config.action_mailer.default_url_options = { :host =>
"production_url.com" }
When I run the above code
2007 Sep 12
0
Error when running migrations
I''ve checked out a rails project that i''m working on from a repository,
and created a new database for it. However whenever i try and run the
migrations i get the following error:
rake aborted!
#<AppConfig:0xb7870f84> is not a class/module
Whenever I try to fire up a webrick server, i get the following error:
=> Booting WEBrick...
2015 Mar 26
1
TSIG error with server: tsig verify failure
when you read. :
http://www.spinics.net/lists/samba/msg111972.html
says:
>
>That output
> ; TSIG error with server: tsig verify failure
>is usually only seen when the internal DNS server is running.
>It's a glitch, which can be ignored atm (all dyn. updates are done OK).
>
so if you dont want to see that error, switch to bind9_DLZ.
Greetz,
Louis
2009 Jan 18
3
ActionMailer and url_for in helper methods
Hi,
I was wondering how to get url_for to work inside ActionMailer. I did
research on the web but I can''t seem to find something that fits what I
need.
In my application, each user can specify their custom domain to access
their. I have an ActionMailer that sends them notifications of changes
that occur. In there, I have a breadcrumbs helper method, which
generages something like:
2011 Jul 11
2
Can't get this Rspec test to pass
Hello,
I''m completely new to Rspec testing and I''m finding it very difficult to
mock specific objects.
In this test, I have a before block setup as such:
[code]
before do
setup_controller_for_warden
controller.session[:operation_id] = 1
@operator = Factory :operator
sign_in :operator, @operator
@persist_herd = Herd.new
2006 Jan 16
1
default_url_options for relative tag URLs
Hello,
I need help with using ''default_url_options''. At least this is the
function that I *think* is involved in the solution I seek. :)
I''m deploying my rails app beneath an Apache ProxyPass setup. I''ve got
it all working fine except that any rails tagging functions in my
templates create absolute URL references.
For example, this stylesheet function in my
2006 Jul 24
0
Why doesn''t default_url_options :anchor => ... work for render
In my action, I test to see if a particular button was clicked, if it
was, I want the template to render, but to go to a particular anchor,
like #company.
E.g.
if params[''add_company'']
default_url_options :anchor => ''insurance''
end
#... logic
# then default render
In the add.rhtml:
<a name="company">
<%= text_field model, company_name
2008 Apr 26
0
Routing: Language as first part of path, for just about everything
Hi Group
Like others before me have posted to the group, I am trying to
implement routes that have language as the first part of the path,
without having to rewrite just about every url generating statement
across the codebase (my own, plugins, tests, etc).
Let''s start with an example:
map.login ''/:lang/login'', :controller => ''sessions'', :action
2008 Jun 12
3
Upgrading to 2.1 breaks my named routes
I just upgraded to 2.1 and attempted to log in to my application and
when this line is reached in my login action:
redirect_to(index_url)
I get the error
"wrong number of arguments (0 for 1)" [stack trace below].
Here''s my route:
map.index ''index'', :controller => ''e_simply'', :action => ''index''
I found
2007 Mar 15
2
simply_helpful's form_for not respecting default_url_options (only_path)
Looking over the discussions and Trac tickets am I correct in assuming
that the simply_helpful''s form_for not respecting the
default_url_options (specifically only_path) is a side-effect of some
other default behavior choices?
Personally, I set only_path to true as my default as I think except
were you are dealing with https it makes life much easier (especially
in testing) and is just