similar to: issues with text_field in rails

Displaying 20 results from an estimated 200 matches similar to: "issues with text_field in rails"

2012 Apr 10
2
how to use cronjob
hey everyone i want to send mails by scheduling the time dynamically.lets say in a single table i have all the employee logs who came at different timings.they are from different locations and departments. i want to send mails to different mails ids according to there location to there HR. can i do this with cron job. thanks in advance -- You received this message because you are subscribed to
2012 Apr 21
13
issues with changing directory structure in rails3
class BranchesController < ApplicationController def branch @branch = Branch.new (params[:branch]) branch_back = @branch.*branch* end end in the model have one *branch.rb* class Branch def branch end end In the view have one branches folder, also have the branch.html.erb in that folder. <%= form_for(@branch) do |f| %> <%end%> *routes.rb* * * match
2011 Oct 12
36
ROR setup on ubuntu machine
I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some steps to follow for ROR? or some effective tutorials link to setup this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ciRx6txsgY4J. To post to this group, send
2012 Apr 19
2
method value passing in rails
in my ruby on rails application, i have one controller class HomeController < ApplicationController def home puts "name.....#{@name}" end def branch *//HERE HAVE TO GET THE ABOVE FUNCTION VALUE @name* end end What am trying to do, i have to get the @name value in method branch. i could show the value in function home, but i didn''t get that in
2007 Sep 06
1
14. Re: ztcfg error : TE110p error with " CAS signalling on span1 conflicts with HDLC with ... (Carlos Chavez)
Hi Carlos/All, Thanks for your reply. I can remove dchan=16 from zaptel.conf But according to the documentation of Digium and sangoma they mentioning to use dchan=16. Are there any specific reason you have experiance regarding this and I am confusing that what this is included to the documentations. Regards, Vidura. On Wed, 2007-09-05 at 20:26 +0530, Vidura Senadeera wrote: > Dear All,
2011 Nov 22
7
rake aborted with ruby on rails
when i run * rake db:create* * * WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/vishnu/.rvm/gems/ruby-1.8.7-p352-D9TI4Ms3gBgeRYYz77F+sQ@public.gmane.org/gems/rake-0.9.2.2/lib/rake/rdoctask.rb DEPRECATION WARNING: Rake tasks in
2012 May 24
3
rails ajax issues
Hi * *I think this is my 4 or 5th post about the ajax issues with my rails code. But i couldn''t rectify my issues sofar. problem is, In my pages.html.erb have one text field and button. when i click on that button, the text field value will get into the controller through ajax,so after the function i need to get that value(textfield value) in same page. *page.html.erb*
2008 Nov 16
6
* + Legacy PBX works but strange problem
Hi below are my configs: pstn(e1)--->asterisk (span1)----->legacy pbx(connected via span2)-----> legacy pbx analog extensions. my dial plan is like callers dial into asterisk(span1) , hear an IVR option and they are connected to the agents via the legacy pbx (which is in sync with asterisk on span2)....This works perfectly fine until about 200 calls or so...After that time when asterisk
2006 Aug 02
0
newbie: Using text_field for date and select_time for time
Hi, I am having java script to enter the date using a calander to a text_field and having separate select_time for the time selection. but we want the controller end to have the normal ruby time format by concatenating the entered time using select_time and entered date using the text_field (via the calendar) Could someone please let me know how I could do it? I am not sure whether I
2006 Jul 10
2
Formatting of dates in a text_field
When displaying a date field using a text_field object, is it possible to specify how the date will be formatted? <%= text_field ''item'', ''created_at'', {:class=>"text-input", :size=>18, :disabled=> true} produces 2006-07-07 12:00:00 I would like to reformat it to something like 07/07/2006 12:00pm -- Posted via
2006 Jul 16
3
Binding text_field et al to object.attribute.name
Hi all, Suppose I have a PurchaseItem model which refers to Product model... class Product < ActiveRecord::Base has_many :purchase_items end class PurchaseItem < ActiveRecord::Base belongs_to :product end To keep things simple, one of the attribute of the Product model is title. On the interface, I have a textfield that I need to bind with @purchase_item.product.title.
2006 Jul 26
2
text_field and date_select in collection
hello, i would like to display a collection of records on one page (e.g. an author record with all his/her books). a record contains a text_area (e.g. a description of the book) and a date_select (e.g. when the book was published). <% for @book in @author.books %> <%= text_area ''book[]'', ''note'' %> <%= datetime_select
2006 Jun 16
0
link_to_remote v. text_field?
Just curious if anyone had come across wanting to submit the value in a text_field via link_to_remote [the more obvious way is to use form_remote_tag]? It''s certainly possible using javascript but was wondering if theres a rails construct.. -- Posted via http://www.ruby-forum.com/.
2006 Jun 26
2
text_field weirdness?
I''m storying amounts of money in my database as cents. So I have custom accessors in my model, for example def actual_amount read_attribute("actual_amount").to_f / 100.0 end But when I use <%= text_field ''item'', ''actual_amount'' %> I get, for example, "3600" instead of "36.00". If I ignore the helper, and
2006 May 02
2
text_field
Hi, All. Is it possible to use the text_field with an instance variable. Controller: def hoge @value = ''result'' end View: <%= text_field ''value'' %> It don''t work. Please help. -- Posted via http://www.ruby-forum.com/.
2006 May 19
1
pass text_field to controller when using periodically_call_r
Hi. Can anyone help with this? In a view, I have a text_field_tag( :mytextfield ). I would like to pass the current value of that text_field_tag to a periodically_call_remote - something like periodically_call_remote( :url => { :action => :do_it, :thetextval => :mytextfield.value } ) - Any idea how can I pass and/or access the value of the text_field_tag in my do_it controller?
2006 Apr 06
0
Clearing text_field
Is there an easy way to clear a text_field_tag inside a form_remote_tag once the AJAX call is made? When the user clicks the button I''d like to clear the field to signal they can begin entering the next value. Thanks in advance, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 08
1
text_field behaviour with validations
Hi, The text_field method sets the class of the field to "invalid" when the object you specified is invalid (when using validations). This is to facilitate working with validations. Is there anything else it does? In a certain non-standard situation I''m forced to use text_field_tag, instead of text_field. This means I have to take care of the validations myself as well.
2006 Apr 18
1
''wrong number of arguments'' for text_field?
This is probably something very simple but I can''t seem to figure out why I keep getting the ''wrong number of arguments (1 for 2)'' error with the following code when I try to create a new record. If anyone can see what is going wrong here please help! new.rhtml ------------------------------------------------- ... <%= start_form_tag :action =>
2006 Feb 20
0
How to reference a field of an associated object in a text_field
Hi, I hope someone can help, I am stumped. I have a Registration ActiveRecord object. It records registrations for people for classes. class Registration has_and_belongs_to_many :people has_and_belongs_to_many :scheduled_courses end I have a form that allows someone to register. A registration form will register two people. They fill in their names, addresses, and the classes they