Displaying 20 results from an estimated 100000 matches similar to: "RoR: find a record by date"
2006 Mar 06
1
Uploaded File to Database
Hi,
I currently write a tool for my school. Therefore I have to save
uploaded files.
I bought Agile Web Dev. with Rails to learn webdev with Rails.
I''m very new at rails and couln''d find anything on the internet.
Now when I want to save the file data to the mysql database, rails gives
me an error.
My code is the same as written in the book on page 363.
Here is my code of the
2006 May 10
2
Rails, Postgres and the Date Field.
Hi guys,
I''m having problems with my app. First of all, I created a date_select
with the code:
<%= date_select(''contact'', ''birthday'', :order => [''day'',''month'',''year'']) %>
In the contacts table, I create a date field:
birthday DATE
When I save the values goes wrong into the database.
2006 Feb 20
1
extract month from date column
Hi,
I have this rails query:
@birthdays = Birthday.find :all,
:conditions => ["user_id = ? and
birthdate = ''2006-02-01'', @user_id],
:limit => @birthday_pages.items_per_page,
:offset => @birthday_pages.current.offset
You can ignore the user_id, limit and offset part.
2011 Aug 11
0
Opportunity to work in a startup - Noida - RoR - Product Based
Folks, We have a Ruby on Rails opening for a 1-3 year experienced
developer in Noida.
Developer will work on websites which will require expertise in HTML,
CSS, JavaScript(AJAX), PHP, SQL, RubyOnRails. The role will have the
responsibility to create a scalable application where various travel
agents can come and compete for customers.
Required skills: HTML, CSS, Javascript, Frontend development,
2009 Feb 27
4
Optimize for loop / find last record for each person
I want to find the last record for each person_id in a data frame
(from a SQL database) ordered by date. Is there a better way than
this for loop?
for (i in 2:length(history[,1])) {
if (history[i, "person_id"] == history[i - 1, "person_id"])
history[i, "order"] = history[i - 1, "order"] + 1 # same person
else
history[i,
2003 Dec 03
0
looking for a job as a UNIX/FreeBSD system administrator
Hello!
My name is Egor Rukhvadze. I'm looking for a job in US as a UNIX/FreeBSD system administrator and/or network administrator that lets me utilize my experience in an Internet Service Providing (ISP).
Name: Egor M. Rukhvadze.
Birthday: April 13 1973.
Contacts:
Phone number: home +7 (095) 126-41-84 (8AM-1PM PST or 8AM-4PM EST).
Cell: +7 (903) 792-31-53
e-mail: gara@mail.ru
ICQ#
2007 Sep 24
3
Oracle Date + RoR
Hi Experts,
I''ve a model called Product where i''ve column called created_at,
updated_at
where i''ve made a query based on Oracle date format
like
date_of_created = ''23-SEP-07''
@product = Product.find(:all, :conditions => ["created_at=?",
date_of_created])
but in view its empty.
AND EXPERTS I''VE DATA WITH 24-SEP-07 FOR MORE
2006 Aug 11
4
date (age) validation
I have an application that requires users to be in a specific age group,
or above a certain age. For simplicity sake lets say they have to be at
least 18.
This is my most recent attempt to produce the desired result:
validates_exclusion_of :birthday, :in => Range.new(Date.today,
Date.parse( (18.years.ago).strftime(''%Y/%m/%d'') )),
:message => "does not meet
2006 Dec 21
1
changing active record to use date or datetime instead of time
Hello,
I need to use Date or DateTime for a column instead of Time because I
have need to include dates older than 1970. I am using SQL Server for
a backend. I have been experimenting with changing the column type in
SQL Server, but active record always seems to Time regardless of what
the column type is.
Is there something I need to declare in my model?
I can''t seem to get active
2006 Mar 07
1
Find By SQL + multiple tables
Hello all. I am trying to get the following SQL to work in Ruby on rails
and Oracle.
SELECT bugsheet.*, bugcomplete.bc_time FROM bugsheet, bugcomplete WHERE
bugsheet.bs_id = bugcomplete.bc_id AND bugsheet.bs_patchrel like
''5.1.12-B4%'' ORDER BY bs_cdate DESC, bc_time DESC
If I type that into an SQL program it works fine, if I try and use the
following in RoR:
2006 Jan 15
0
ROR and MSSQL server.
Hello all.
I have just gotten the Agile development with ROR book and am
evaluating whether ROR would be suitable for our needs. After reading
some of the book I am thinking that ROR might not be able to handle
the GUID datatype as primary keys in SQL server. Specifically primary
keys in SQL server are created after the record is created and might
not be available to the activerecord unless the
2006 Jan 20
0
Problem with updating model
I trying to update DATE type field in MySQL but such errors occurs
errors:
password_confirmation:
- "can''t be blank"
birthday:
- "can''t be blank"
Spending hours on that, I cann''t find the reason
But I''ve filled "login" "password" "password_confirmation" and
"birthday" fields
2006 Jun 12
2
Database in RoR application
I''m working on a new rails project that will have a very, very large
database. Initial insert will be in the hundreds of thousands of
records.
The database we are getting the information from is Microsoft SQL based,
and we have access to tab delimited update files daily.
We''re trying to write import scripts and use a well designed database on
our end. The data they are
2006 Mar 21
3
ror-generated sql syntax fails at ''where''.
I am working on my first Ruby-on-Rails project after completing
"cookbook" and "todo list" tutorials.
When "SAVE"ing a new record to a table, the "create" method throws SQL
error #42000 for:
SELECT * FROM mailboxes WHERE (key = ''TEST'') LIMIT 1
but if i change syntax to fully-qualified column, the query tool is
happy with:
SELECT
2006 May 22
1
Active Record Migrations -> Table Relations
Hi there !
I am currently investingation ROR.
I really like the idea of specifying my database schema via Migrations,
but one questions came to my mind.
How does one specify Table relations in the migration ?
1. There is a fancy way of doing it with Active Records.
2. I just add manually some Integer ID columns etc... and lateron add
the Foreign Key semantic via SQL..
Which one of the above
2006 Apr 24
2
Ror has problems with memory usage??
I saw this on a forum for MODx (a CMS which seem very good, built on
standards, with clean XHTML/CSS, using PHP).
"RoR is a killer application, but is either a crusher when it comes to
memory usage or SQL usage. Even simple seeming things can kill a server
if it''s not dedicated to the application. In addition, RoR is much more
complex really than MODx if you''re not
2008 Apr 25
0
Does anyone know ROR Developers looking for work?
Hi, I''m with Next Internet LLC (nextinternet.com) and we are looking
for Ruby on Rails Developers for our companies in San Fransisco, CA.
The job description is below and attached:
Ruby On Rails Developer
Next Internet creates, builds and operates Internet businesses. We are
well-funded and have an experienced management team that has built
several highly
2010 Mar 11
0
{JOBS} RoR Developers (Senior and Junior) Tottenham Court Road, London
I''m hiring Ruby on Rails Developers for the Tottenham Court Road area,
London. Here''s some information:
Working for a global online services organisation, the Senior Ruby on
Rails Developer will design and develop large web based business
applications, products and tools to support the EU business.
The Senior Ruby on Rails Developer (Ruby on Rails, OOD, OOP, Agile,
SCRUM) will
2006 Feb 28
1
RoR date_select() default date
Hi,
I''m trying to use the date_select() function of ruby on rails, but I
want my form easier to use and I want to put an explicit default date.
I don''t kow how to do that. I can''t find any information about default
on the web, and no example either.
Let me know if there is a tips that I don''t know...
--
Posted via http://www.ruby-forum.com/.
2006 Sep 13
0
Need RoR Programming - HELP
Expectations and requirements for the job are:
Languages:
- Experience with ruby / rails (required)
- Knowledge and understanding of ruby on rails (required)
- Minimum 1 year experience with HTML/DHTML/JavaScript (required)
- Basic understanding of SQL (required)
Frameworks:
- JBoss Stack (Bonus)
Concepts:
- Knowledge and understanding of networking concepts; tcp/ip,