similar to: how to insert Current DateTime value into database?

Displaying 20 results from an estimated 1000 matches similar to: "how to insert Current DateTime value into database?"

2006 Mar 10
2
Syntax for <input type=hidden> in rhtml????
Hi, I am new to ROR. PLease tell me what is syntax of creating hidden field in form inside RHTML file. I knonw the syntax for text box (<%= text_field ''product_item'',''product_id'', :value=>product.id%>) But I don''t know syntax for hidden field(like <input type=hidden> in HTML). Please tell me. Thanx in advance. Prash -- Posted via
2006 Mar 17
1
How to update values in database in this form?
Hi, This is my rHtml page & Corresponding actions & model pages:- ===listform.rHtml================= <h1>Products List</h1> <%= start_form_tag(:action => "add_to_cart")%> <table> <tr> <% i=0 %> <th> Product No. </th> <th> Unit Price </th> <th> Available Qty. </th> <th> Demand Qty. </th>
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in forms, this is my code <%= start_form_tag :action => ''create'' %> <div class="form1"> <table width="auto" boader="8" cellspacing="5" cellpadding="5"> <% hidden_field ''line_item'', ''client_id'', :value
2010 Jan 18
7
Ruby Array to Java Script Array
Hi, How can we use an array created in Ruby in Java script ? Regards, Prashant -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Jun 04
3
passing a value in a hidden field inside a form
should be trivial but I can''t figure this out from api <%= hidden_field ''certifications'', ''personnel_id'', {value = #{@personnel.id}} %> I want to pass the value of ''id'' field in my form to the certifications controller as personnel_id Craig
2004 Sep 25
4
Absolutely minimal Asterisk PSTN gateway
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello together, I am setting up a communication server which should also act a very-low-load PSTN gateway. I am usiing a AMD K6 200 running from a 500 MB usb memory stick. What is the ABSOLUTE minimum space requirements for ~ running asterisk to work as gateway between isdn and lan? 50MB or 1 GB?(I would compile, configure, etc. on a separate machine
2006 Mar 17
3
How to check for presence of particular value entered ?
Hi, I am entering value in textbox ("name") on form. Now name field in database is having ''unique'' constraint on it so that no 2 records with same name allowed in database. Now when I m trying to enter same name into database from my form I m getting following error. ================================ Mysql::Error: #23000Duplicate entry ''Prashant''
2006 Mar 31
3
Position For Ruby on Rails Consultant
Hello Everyone, My name is Prashant and I head the placement division with ANZ Solutions. We work with close to 53 clients all over the country and help them with their staffing requirements. I like to network with strong technical people like you and like to associate myself with respect to your career plans. Please let me know and I will give you a call. We can help you for any kind of
2006 Aug 07
2
related to forms
I''m trying to construct a form that would request a page using GET and would like my variables to be simple like q,v, etc so that the URL it calls is something like: /controller/action?q=80&v=100 However, I''m having trouble using the basic form helpers (probably doing something wrong) cos expressions such as: <%= hidden_field "q", "v", {:value
2008 Aug 09
8
Problems Installing
I recently had to uninstall PokerStars and WINE will not allow me to preform the reinstallation. I have also tried installing other programs with no success. I contacted PokerStars support but they said it'll be at least 2 days before their Linux guy was in. What they wanted was my WINE log files by going in through the terminal. Thats all they could tell me until 2 days from now. I have no
2006 Jun 08
5
How to find particular pattern in string?
Hi, In my application I want to find out the occurance of substring "http:\\" in the main string "http:\\www.abc.com" Here how to find out whether substring "http:\\" is present in my String? & if substring "http:\\" is present then I want to delete it from main string. How to do this? PLs help me. Thanx in advance. Prash -- Posted via
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial =>
2006 Jul 12
7
Failure in comparisons
I''m basically a Ruby noobie. At the moment I''m having a fair bit of trouble trying to figure out what''s going wrong here (partial template): <%= @project = Project.find(@the_id) if current_user.userid == @project.client hidden_field ''messages'', ''recipient'', ''value'' => @project.project_manager
2008 Jan 31
2
How to get called number in featuremap
Hi, I am new to asterisk configuration. I want to get called number in features.conf. I am defining a feature in features.conf and that feature got executed on pressing a particular DTMF key sequence. As I want to execute my own application on pressing that key which will use called number. testfeature => 3,peer,AGI,StoreNumber|<CalledNumber> Here I want to use called number in place
2008 Jul 07
3
How to get a users screen name into a hidden field in a PostsController action?
Instead of the user entering a name, I want to pass their screen name along with supplied :title and :content fields. here is what I''ve got.. f.hidden_field :author, user.screen_name here is the create method from Posts controller: def create @title = "Gravity" @user = User.find(params[:id]) # this does not work, and I don''t know why if request.post?
2006 Jan 13
4
How to add virtual fields in model
I want to add virtual fields in a model. table: field1 field2 I want to add field3 which is field1*2 + field2 I know tihs can be achieved in View, but I want it in model. Then I will pass this model to PagerRenderer to paginate. How to achieve this? thanks -- Posted via http://www.ruby-forum.com/.
2011 Nov 08
5
Samba-3.6.1 release IPV6 issue
Dear Sir, I am trying to use the shared files from Windows 7 using IPV6 address. But I couldn't able to map or access it through V6 address, though I can access it through IPV4 address. I tried almost every thing whatever I did find on the internet community. I would be grateful to you if you could help me to make this working. If possible please provide all the steps including
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the views with tons of <% %> ? Like this <%= start_form_tag() %> <%= text_field_tag(''category[title]'', category.title, {:size => 20, :maxlength => 128}) %> <% if not category.parent_id.nil? %> <%= select("category", "parent_id", Category.find(:all,
2010 Jun 02
11
HElP me I am a beginner
HY all, I am completely new to the asterisk so can any one help me with it as I have some questions queries 1. first n for most what are the tools/equipment that I need for eg a Computer, and a net connection is it all that I need for simple head start to get hands on the asterisk and cam please any one send me all the copies from vol 1 to vol 70 every issue Thank You and Best
2006 Mar 05
1
Help with Self-Referential HABTM
With the help of the Rails Recipes have got a self-referential HABTM relationship working, but I''m really struggling with getting a new entry from a form accepted. i should say here that the form is also submitting info for the join table too. So in my model I have: class Type < ActiveRecord::Base has_and_belongs_to_many :subtypes, :class_name => ''Type'',