Displaying 20 results from an estimated 400 matches similar to: "date_helper megapatch and MultiparameterAssignmentErrors"
2006 Jun 28
6
Rails 1.1.3 and routes to controllers in directories
Hi,
All my controllers in subdirectories aren''t reachable by the normal urls
anymore since my upgrade to 1.1.3. 404 errors. Did anybody else
experience this?
grtz
Thijs
--
Posted via http://www.ruby-forum.com/.
2007 Nov 23
12
namespaced controllers
Out of curiosity, I''ve seen the following fail:
module Admin
describe MyController
...
end
end
But this works fine:
describe Admin::MyController
..
end
Why?
Scott
2007 Feb 07
3
Upgrade to Rails 1.2.2 : RESTful routes not working anymore
Hello,
I just upgraded my app to Rails 1.2.2.
My routes are :
map.with_options :path_prefix => "/admin", :name_prefix => "admin_" do |m|
m.resources :requests, :controller => "admin/requests", :collection => {
:destroy => :delete, :search => :post } do |request|
request.resources :histories, :path_prefix =>
2005 May 31
2
Form Dates and MultiparameterAssignmentErrors
I''m using the date_select form helper for a date_of_birth field on an
ActiveRecord object. When I try to save a date earlier than 1 Jan 1970,
ActionController punts with
ActiveRecord::MultiparameterAssignmentErrors. The message it gives is
"1 error(s) on assignment of multiparameter attributes". I was able to
catch the exception and look at it, and it is certainly complaining
2011 Jul 14
0
MultiparameterAssignmentErrors
The attached file show the error I''m getting.
I have a time time in my migration and a time_select:
<%= f.fields_for :company_layout do |company_layout_form| %>
<p>
<%= company_layout_form.label ''HorĂ¡rio de abertura'' %>
<%= time_select(''company[company_layout_attributes]'', :opening_hours,
:ignore_date => true,
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
I am trying to create a form for processing credit cards. For the
credit card expiration date, I would like to leave the day field out
of the form for obvious reasons. However, the following code is
producing an error for me.
Any ideas?
Thanks!
<p><label for="email">Expiration</label><br/>
<input type="hidden" id="user_card_expiration_3i"
2007 Aug 24
11
Aliases not working in a subclass ?
Hi folks,
I''m overriding some resource attribute in a subclass. It seems that
specifying a resource by its alias doesn''t work in a subclass.
Looks like a bug, no ?
=== module-classes.pp ===
class module::base {
file {"/tmp/test-module":
alias => test-module,
content => "module::base",
}
}
class
2008 Jun 26
2
Problem with date_select after Rails 2.1 upgrade
Folks,
I think I should start a new thread for this, because a similar one I
saw is a bit old and the resolution there doesn''t seem to apply to
what I''m running into now.
Anyway, my date_select calls are bombing on me with the exception:
----
ActionView::TemplateError (wrong number of arguments (3 for 2)) on
line #8 of entries/_dates_form.haml:
8: = date_select(
2007 Jun 04
2
access to acts_as_threaded
Hi,
I have trouble accessing the acts_as_threaded plugin at
http://railtie.net
looks like the site is down.
Does someone have a copy? or knows an alternative repository for the
plugin?
please you can zip it to to this address georgkam[at]gmail[dot]com
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2007 Jan 03
18
error "Stack level too deep" on ''exec[ "perl Makefile.PL" ] ?
Hi,
I''m testing puppet from the subversion trunk. I have a rather
hacked-together system to install a CRM into one of my nodes, which
worked (more or less) with version 0.19.3. When I tried to do a puppet
run on a completely clean node it seemed to stall on the ''compilation''
part (I do an exec of ''perl Makefile.PL'' in the appropriate dir). When
I broke
2007 Feb 21
2
date helper bug?
I''ve found an issue when trying to use the time_ago_in_words and
distance_of_time_in_words from action view''s date_helper.rb
Using SQL Server, I have a datetime column that gets returned as:
"2007/02/21 09:54:00". When I pass this to time_ago_in_words (which
just passes on to distance_of_time_in_words) it miscalculates the
difference as "9 hours" (...um yeah,
2006 May 03
2
Using a helper within another helper?
I am trying to push some view logic into a helper. The thought is that
this is a step towards having the business logic in the helper rather
than the view. However, I''m essentially wrapping the checks around an
eventual call to date_select(). The problem I''m having is that the
application complains that it doesn''t know about date_select(). I''m
sure (or
2007 Jan 04
10
New Feature: Graphing
Hi all,
One of the major new features in the upcoming release is that Puppet
now uses a graph library internally to handle resource
relationships. The big benefit to all of you is that you can use
this library to turn these graphs into images.
The trick, right now, is adding --graph when you run puppetd. This
creates .dot files, which can then be interpreted by the
2007 Feb 11
4
Let's make RAILS_ROOT an absolute path on Windows
As this Caboose article [] suggests, I am not the only one who had
this problem. RAILS_ROOT is a relative path on Windows, and it can
bite you in unexpected ways. I had that problem while working on
CruiseControl.rb.
There is a trivial patch fixing it (by simply applying
File.expand_path to the path before assigning it into the RAILS_ROOT
constant): http://dev.rubyonrails.org/ticket/7259
Best
2007 May 26
13
munin module: manage clients and server''s config
Hello all.
Probably this question has already been posed in the context of another
software, but I am unable to find it.
I would like to implement a module which should manage munin-clients as
well as the munin-server.
Here is what I am thinking about implementing:
- There are two classes: munin::client and munin::server
- munin::clients'' configuration will be managed automatically.
2007 Jun 09
12
Example module for central git repository via http (sort of like a subversion repo) [a bit RFC]
Hi all,
I''ve been looking for a good example for how one would build a module,
but I couldn''t really find something that I liked, so I went ahead and
tried to do it myself.
The result is this: a git module (see attachment).
Please have a look and comment on it, before I add it to the wiki. I
especially want comments on the setup of the module itself, not so
much on the git
2007 Jan 15
7
How to conditionally run defines?
Hi all,
Is there a (simple) way to add conditionals to a call to a define?
What I want is to run a define only if a file (that gets created
somewhere along the run of the define) does not exist. In this way I
can skip a whole lot of setup work in the define if I know it has
already run once before. I would think adding a unless clause would be
a elegant solution (and the other conditionals like
2006 Dec 24
3
Installing CPAN packages?
Hi guys,
Has anyone yet tackled installing CPAN packages through puppet? I need
some that aren''t available as separate debs, so if anyone has an idea
how best to do this, I''d like feedback.
Thanks,
Thijs
2006 Sep 23
4
"server" config option (and cmd-line option) don''t do anything for puppetd?
Hi guys,
Unlike what it says in the documentation and the --help output, I
can''t seem to get puppetd to use the --server setting. The only way I
can get puppetd to work is to include a ''puppet'' alias to the ip of
the machine I''m running puppetmasterd on in my hosts file.
The strange thing though, is that the logs of my puppetmaster show
that it *is* getting