similar to: discard_year => true

Displaying 20 results from an estimated 500 matches similar to: "discard_year => true"

2005 May 03
0
:discard_year => true for date_select
Hey guys, There''s been a patch in the queue for a few days around the discard_year option for date_select and datetime_select. The author has also attached a second patch which makes similar changes, but instead of just dropping the field, a hidden field is used instead. We only need one of these tickets open, and we probably should apply one of the patches.
2006 Mar 21
5
Getting a time select input
I''m having trouble workign out which ActionView DateHelpers to display a time input for an ActiveRecord field of type :time. I just want an hours input and a minuites input. I can get these with time_select helper using :field_name and :prefix but it gives both hours and miniutes the same name. <%= select_time(Time.now, :prefix => "search", :field_name =>
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
2006 May 18
4
time select with am/pm?
Hi everyone, Is there a time select helper which uses a 12 hour clock rather than a 24 hour one? Also, does anyone know if :discard_year actually works in datetime_select now, or how I could find this out? Thanks! Daniel
2006 Jan 27
20
bundled_resource v.0.9
Original announcement at http://blog.inquirylabs.com/ [1] == What is bundled_resource? == If your development is in any way similar to mine, there are a number of useful resources out there that make web applications shine beautifully. For example, there?s the Dynarch calendar and the textarea tools. There are a number of others?too many, in fact. The problem is that as a web developer,
2005 Dec 23
6
Selecting time
I''m currently building a small app that''s going to be used to keep track of the amount of time spend on customers of the company I work for. This mainly consists of object with a begin time, an end time and a calculation of the difference between those timestamps (actual time spend on the job). I made a small form with a datetime_select helper for the begin and end time (the
2006 Mar 21
5
Use select_date for my model?
Hi all I have a model "party" that has a time field "starts_at". I have created a form to add new instances of this model. <%= select_date Date.today, :prefix => ''party'' %> Sadly I get the error: NoMethodError in Parties#add undefined method `month='' for #<Party:0x256a600> How can I fix this problem? I remember that I saw in
2005 May 02
1
datetime_select and discard
ok so datetime_select if you use the discard options say { :discard_month => true } when you just do update_attributes on said object year would be correct month would be the hour date would be the minute so if you select year: 2005 hour: 12 minute: 13 the time object would go into the db as: ''2005-12-13 00:00:00'' so my question is how do i get the time object properly
2006 Jan 22
0
datetime_select with postgresql time field
I get errors when committing to a postgresql time field using datetime_select discarding year,month, day. Also, year shows on my form despite calling "discard_year=>1. Do I need a special mapping for time fields ? Any ideas?
2006 Jan 25
0
datetime_select discard year bug?
I''m trying to have a select box for starting time. I''m using: datetime_select(:user, :start, :discard_year=>1) but I get an error. "discard_month=>1" seems to work but leaves the year on the form. Using Rails 1.0 and Postgresql. Anyone having success with this?
2011 Jan 04
1
Problem with "date_select" form helper
Hi, I am using "date_select" form helper to select the date. My code is as follows:- <%=date_select("post", "written_on", :prompt => { :day => ''Select day'', :month => ''Select month''}, :discard_year=>true)%> It works. But there is problem with the number of days for each month. The days combobox has populated with
2006 May 07
4
Paginate() from multiple tables
Hi I''m wondering if there''s a way I can gather data from multiple tables from the child table by using the paginate method? I would have done it using select_by_sql but I need it to paginate. My table structure is: Records is a child of Date and Account Date Account | | ^ ^ Records I want to be able to print a table using the Records controller that will
2006 Jun 04
5
Creating pulldowns using loops
Creating looped pulldowns in PHP is simple so I can''t figure out why it seems to elude me in RoR. I want to create a simple pulldown list with the options and values "1" through "14." I have been trying to accomplish this with the .upto method like so: --START RHTML CODE-- <% options_array = [ 1.upto(14) {|i| print "[" i "," i "]"}
2006 Feb 21
2
Production ecommerce sites?
Hi All First post and its a question of Rails abilities. I was wondering if their are any examples of a Rails application driving an ecommerce shop site. Selling a catalogue of products? We''re looking at starting our first major Rails project at work and wanted to gather some examples to sell to the MD as PHP is becoming a drag and there''s so much more possibility in Rails.
2006 Feb 27
2
Upload & Parse CSV
Hi All I was hoping you could help me. I need the ability to upload a large quantity of data via CSV - via an upload form. The CSV file then needs parsing and the data entering into the relevant module. Does anyone have experience of this or perhaps knows of a posting, generator, existing code or any help at all? I''ve been looking but not come across anything so far. I can do this
2004 Jul 22
1
vampire failed for undefiled value sambaSID
Greetings! Vampaire process is running, but it failed create accounts for everyone. The error message is "Can't call method "get_value" on an undefined value at /var/lib/samba/sbin/smbldap-useradd.pl line 152." And I looked at the mentioned file and the line is $userGroupSID = $group_entry->get_value('sambaSID'); I am
2006 Feb 08
1
Adding children via small subform
I''ve read AWDR and especially the part concerning adding child line_items to an order. Unfortunately I want to do my process in reverse and in doing what I thought would work I get a null object error when trying to append the children to the parent. This is a _major_ stumbling block in my Rails use as almost every one of my projects has needed this so its a pretty vital problem I need
2006 Feb 23
5
layouts
I created a controller called reports, for which I didn''t have any model or tables. I wanted to use a menu/layout structure similar to all my other models/controllers and added a layout named reports which then gives me the menu/layout structure but is also now part of all my reports. That isn''t gonna work so I renamed reports.rhtml to reports_forms.rhtml (still inside my
2005 Jul 28
1
CentOS Linux training in the UK
Hi everyone This summer we are moving all our UK Linux training short courses over from Fedora Core to CentOS. For more information please visit: http://ce.bromley.ac.uk/linux Thanks very much Clive
2007 Apr 20
2
Partitioning around mediods (PAM)
Hi, I need some help understanding the output from PAM. When I look at the output it doesn't list the cluster number by the median vlaues on each of the variables (like it does with k-means) Instead I have the following: So I know for instance cluster 1 has a mean for variable1 of 33.33, however when I run PAM i get: variable 1 variable2 29 32 12 97 12