similar to: Rails, Postgres and the Date Field.

Displaying 20 results from an estimated 2000 matches similar to: "Rails, Postgres and the Date Field."

2006 May 17
3
Slackware 10.2
Hi guys, I'm trying to use asterisk with my slackware 10.2 box. Kernel 2.6.13 from the testing... The udevd are not creating the /dev/zap devices. Someone already have success installing asterisk over slackware? Thanks in advance. Fernando Lujan
2006 May 18
1
R2/MFC Configuration.
I'm trying to put asterisk working with a proprietary pbx system. I'm doing it using a T1 crossover cable. The pbx system uses the R2/MFC specification. And the don't inform if it uses cas, ccs, ami or hbd3. My digium card is flashing a red light. How can I put this working with the R2/MFC system? Thanks. Fernando Lujan
2006 Jan 07
4
set date with date_select
when retreiving a date from a DATETIME field in a database, is there a way to set the date to the value of the DB in the view? It seems to always default to the current date... if I have a field called birthdate in the users table and i do @user = User.find(@params[:id]) in my view i have a <%= date_select ''birthdate'',''user'' %> but dont know how to
2006 May 24
2
TE406P - MFC/R2
Guys, I'm trying to configure a TE406P with MFC/R2. here goes my zaptel.conf: span=1,0,0,ccs,hdb3,crc4 cas=1-15:1101 dchan=16 cas=17-31:1101 span=2,0,0,ccs,hdb3,crc4 cas=32-46:1101 dchan=47 cas=48-62:1101 The first strange behavior is that the: zap show status shows this: Description Alarms IRQ bpviol CRC4 T4XXP (PCI) Card 0 Span 1
2006 Mar 29
5
Asterisk Between PBX and FXS
Hi guys, I''m setting up asterisk to run with another pbx server. This pbx server support a feature that allows 2 extensions connect to the same FXS. No I put asterisk in the middle. Asterisk receives the call and dial to a SIP/peer. How the pbx installed support 2 extensions to one fxs... How can I figure out in asterisk which extension was dialed before the call came to asterisk?
2006 Feb 10
14
dynarch calendar and calendar helper usage
I am playing around with this and reference this wiki from RonR site... http://wiki.rubyonrails.org/rails/pages/CalendarHelper The error I am getting is: NameError in Placements#list undefined local variable or method `date_format'' for #<PlacementsController:0xb78f9ef4> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jun 16
3
finding out about options
I''ve been to the RoR api docs trying to find out about options for various methods (mostly for select helper methods), yet I find no listing of options even when the method described says that it takes options. How can I find out what are valid options say for a date_select tag? Thanks, Dave
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,
2006 Apr 04
2
Ajax Effects Tutorial
Hi there, I am in love with rails... And now I want to rule Ajax effects with rails. Where could I find a book like: Ajax on Rails? :) Tutorials will be welcome too. Thanks in advance. Fernando Lujan
2006 Dec 08
9
How to update partial attributes of a object from a form?
I have a user table, and it has forty columns, including name, gender, address, email, phone... So my @user object will have forty attributes. I divide these attributes into 4 groups... namely ''general info'', ''personal info'', ''contact info''... and I make separate forms to edit these 4 different group attributes. The problem is when I update
2006 May 05
5
Sessid.
How can I get the sessid from the current session object? For instance, I log in the system, and want to know which sessid I''m using. I''m storing the session using active_record. Later on, I want to restore a session finding it using the sessid. Thanks in advance. Fernando Lujan
2006 May 10
3
has_many association.
I''m creating a address book. A user can have many contacts. In the user model, I put: has_many :contacts And in the contact model, I put: belongs_to :user To list all contacts, I search as following: @user = User.find(session[:user_id]) And rendering: <%= render(:partial => "contact", :collection => @user.contacts)%> To persist I am using the following
2006 Jul 24
1
Default in date_select
how to set dafault date in date_select plz explain with example advance thx have a nice day -- Posted via http://www.ruby-forum.com/.
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,
2010 Dec 04
7
Error loading mfc42.dll - failed (error c000007b)
:D Hi, I installed wine on ubuntu 10.10 to run a windows program as reported here (http://appdb.winehq.org/objectManager.php?sClass=version&iId=22133&iTestingId=59338). After few trails I decided to reinstall Wine (now version 1.3.8 ), to configure it as instructed by the guide, and than to install again the windows application, Birthday Reminder. At present the application doesn't
2007 Oct 30
2
WebDav Support.
Hi guys, I read that mongrel supports the webdav protocol. I need to "create" the webdav files and allow a third party app access it just for read purposes. What do you recommend? -- Fernando Lujan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20071030/1527bd35/attachment.html
2006 Jun 08
1
Observable notifying a controller.
I want to code the following task: I have a class, for instance, class A with is a observable. I want to add a controller of my rails system to this class. So I can notify_observer, and it updates all controllers of my system. How do I pass a controller as a parameter to the add_observer() method? And where I put this code? Thanks in advance. Fernando Lujan
2006 May 09
1
Reusing a model to form and link_to.
Hy guys, Inside my app I have a form which contains user information. Sometimes a have a form with a text_field as above: <%= form_remote_tag(:html => { :action => url_for(:controller => "my_controller", :action => "my_action") }) %> <%= text_field(''my_object'', ''my_parameter'', :maxlength =>
2006 Jan 04
5
How do I set the default value for date fields?
I want my date fields to default to NIL or "", because the presence of a date means something. My problem is that rails is defaulting the fields to today''s date automatically when I create a new record through the scaffold. I tried removing the default ''0000-00-00'' and changing NOT NULL to NULL, but both columns get today''s date as the default
2008 Sep 28
5
birthday problem (factorial limit)
Hi, I tried to calculate the formula for the birthday problem (the probability that at least two people out of a group of n people share the same birthday) But the factorial-function allows me only to calculate factorials up to 170. So is there a way to push that limit? to solve this formula: (factorial(365) / factorial((365-23))) / (365^23) (n=23)