similar to: :order => [:day, :month, :year] with date_select

Displaying 20 results from an estimated 30000 matches similar to: ":order => [:day, :month, :year] with date_select"

2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example <%= submit_tag''Login'', :or => link_to_function(''forgotten password'', "$(''reset-password'').toggle();") %> I understand the link_to_function, but what is this :or parameter used for ? the link doesn''t appear, so it cannot be used... thanks for your lights kad --
2006 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%=
2010 Jul 31
5
date_select Year as a text_field
Hey all, Using date_select in a form, how can I make the Year field a text_field instead of a select? It looks like it will take more than a simple modification of the date_select method. Thanks in advance. Cam -- 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
2007 Jan 20
2
find_by_sql with named parameterized sql
I tried to use named parameters in my SQL query , using find_by_sql Order.find_by_sql ([select * from orders where amount > ? and quantity > ?", [ @amount, @quantity ] works;.. but Order.find_by_sql ([select * from orders where amount > :amount and quantity > :quantity ", [ :amount => @amt, :quantity => @qty ] is not working a I wrong or should I use a plain select
2007 Jun 30
2
REST Route how to avoid hacking routes
what''s the best protection against someone trying to modify an URL in a named route /users/25/posts if the user enter another URL /users/26/posts, he can get acces to user 26 posts unless .. a before_filter is checking the current_user ID but is there any other way to do it ? thanks for your lights kad -- Posted via http://www.ruby-forum.com/.
2007 Dec 22
8
Rails 2.0 rescue_from
I am trying to use the new Rails 2.0 macro : rescue_from class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :deny_access ... def show @post = Post.find_by_id(params[:id]) raise ActiveRecord::RecordNotFound if @post.nil? #illegal access ..... end def deny_access respond_to do |format| format.html end end but the
2007 Jun 12
3
REST Routing issue
If I use http://0.0.0.0:3000/users/25/messages/new I can create a new message ressource for user 25 that''s OK.... I would like to be able to use such url : http://0.0.0.0:3000/users/25/messages;send?to=5 in order to create a new message from user 25 for a specific receiver how should write my route ? I tried.... map.resources :users do |users| users.resources :messages,
2006 Sep 12
1
How to use a text box instead a lis for year in date_select
Hi, I have a date_select in my application and is used to select birth date of authers. So it is quite long list of years in drop down list and seems not practical. I want to have month and date drop downs as it is and to use a text box to enter only the year. Is it possible with date_select? Thank you. Sameera -- Posted via http://www.ruby-forum.com/.
2007 Apr 16
0
Default Year selection for date_select?
Hi, is it posible to tell rails to select a specific year/month/day when using a date_select helper? as mentioned in at http://dev.rubyonrails.org/ticket/6124 things like :select_year => 1960 wont work. Where would be a good location to look for such things when the api doesnt show it? Pascal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Jul 24
0
set day in date_select
hello gentlemen how to set default day and default month in date_select. plz explain with examples advance thx have a nice day narayana -- Posted via http://www.ruby-forum.com/.
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(
2006 Oct 03
1
line too long in editor... (textmate)
my where :condition string line is too long in my editor, (Textmate...) if I do a LR, I got a \n in my string, how can i get it displayed in multilines without this garbage in the string : here is the kind of string I am manipulating cond_a.append ["(bookings.start_at == ? OR bookings.end_at == ? ) OR (bookings.start_at <= ? AND bookings.end_at >= ? )",
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
Hi All In my project I am to take date of birth from user so I used datetime_select. It renders three selection boxes, year, month and day. But I want order as day, month and year. I added :order option for datetime_select, it renders normal selection boxes with order year, month and day. Why :order does not work with datetime_select? see my following code <%= datetime_select(:user2,
2018 May 05
0
Adding Year-Month-Day to X axis
Hi Greg, The only reason I included the staxlab function in the plotrix library was to fit all the dates onto the axis. If you want to try it: install.packages("plotrix") Jim On Sun, May 6, 2018 at 9:02 AM, Gregory Coats <gregcoats at me.com> wrote: > Jim, Thanks for responding! > I am using the official R 3.5.0 for Mac OS X. > This apparently does not include library
2018 May 06
2
Adding Year-Month-Day to X axis
Jim, That you very much! How do I instruct staxlab to label once every n days, rather than labeling every day? Greg > On May 5, 2018, at 6:50 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > > staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) [[alternative HTML version deleted]]
2018 May 06
0
Adding Year-Month-Day to X axis
Hi Greg, By default, the "axis" function puts the labels on one line and drops labels that would overlap. When you have labels that are all the same length, this usually results in every second, or third, or fourth label being displayed. So you can probably get what you want by not using staxlab. However, if you really want to use staxlab, try this:
2018 May 07
0
Adding Year-Month-Day to X axis
Look at par(las=2) in the graphics package. You will almost certainly have to increase the bottom margin, e.g.: par(mar=c(6,4,4,2) to accomodate the vertical labels. Jim On Mon, May 7, 2018 at 2:11 PM, Gregory Coats <gregcoats at me.com> wrote: > Thanks. Regarding > axis(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) > > How do I get the text for YYYY-MM-DD
2018 May 08
0
Adding Year-Month-Day to X axis
Hi Greg, This is because both plots have equally spaced x values. To see the difference, try this: plot (x_yyyymmdd, y_duration, type="l", xaxt="n", yaxt="n", ylim=range(240,480), xlab="", ylab="", col="blue") axis(1) plot ( y_duration, type="l", xaxt="n", yaxt="n", ylim=range(240,480),
2018 May 09
0
Adding Year-Month-Day to X axis
Actually I would like to get an output on the below snapshot. I have tried various method like points, labels.. but nothing works. Attached is the data for your reference. On May 09, 2018, at 09:59 AM, Gregory Coats <gregcoats at me.com> wrote: I do not see any difference between the x versus y plot drawn in blue, and the y only plot drawn in red. Is the correct? Greg y_duration <- c
2018 May 05
1
Adding Year-Month-Day to X axis
Jim, Thanks for responding! I am using the official R 3.5.0 for Mac OS X. This apparently does not include library (plotrix) library(plotrix) Error in library(plotrix) : there is no package called ?plotrix? Greg > On May 5, 2018, at 6:50 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > > Hi Greg, > What you are getting there is a factor, interpreted as a 1:n sequence >