similar to: text_field how to ?

Displaying 20 results from an estimated 9000 matches similar to: "text_field how to ?"

2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
I have a site that is PHP on Apache / RedHat , but will send requests to a subdomain (running Rails) for database operations. I believe the set up should be to have ROR using Mongrel, and an Apache virtual host passing requests from apache to mongrel. Does this sound correct ? I believe the Virtual Host is set up in Apache. One of my problems is I can''t find the httpd.conf file for
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be. In my view at the top I have this init calls <script type="text/javascript" > tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); </script> Then in my form: <%= text_area
2006 Oct 11
2
Help please with observe_form - not working
My observe_form is basically totally limp. I think it should update without hitting submit button but even if I hit it , it doesn''t change (doesn''t seem to post the data). Can anyone please take a look and see if I"m doing something wrong. TIA Form: <% start_form_tag({:action => "livesearch"}, :id => "asearch") %>
2006 Oct 25
7
rest nested resources - Help please
I can''t believe I''m back again with another rest question. I did go through the peepcode podcast. I thought though you can have multiple nested resources, is that not true ? I have this set up map.resources :candidates do |candidate| candidate.resources :canbackgrounds candidate.resources :canpositions end I just coded up teh canpositions and now all
2006 Oct 30
16
Seymore - Content Management On Rails
I have just open sourced my Content Management System called Seymore. Rather than having a separate administration section for managing content, content management functions are available throughout the site so users are able to contextually and comfortably manage the content. I am looking for any and all feedback. Please, either checkout the latest source from subversion, grab version 0.1 from
2006 Nov 04
2
date_select parameter
Trying to add start year to date_select <%= date_select(:start_year => 1980)%> It''s throwing an exception "wrong number of arguments (1 for 0) Can''t I add a start_year, API shows this option ? TIA Stuart http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2006 Oct 06
1
Storing multiple choices in databases
As an example - you have a select list of all the U.S. states and the user can make multiple choices. How do you grab all those choices into the database and they would be used for queries. I was reading up on serialize() but the warning in AWDWR is that it doesn''t work well for queries. Also composites / aggragates seems a bit much, maybe not. I know in the past I''ve used
2006 Oct 12
3
Help with observer_form , javascript error
I''ve set up an observer form, it is not working nor throwing error at least in loading the page. The Firefox javascript console is showing this error: Error: missing } after property list Source File: http://localhost:3000/ajaxsearch/list Line: 165, Column: 45 Source Code: hide(''roller'')}, parameters:''Form.serialize(''asearch'')='' +
2006 Aug 07
8
Login form question
I''m using Rails Recipes to create a login form but instead of username and password, my setup is firstname, lastname, password. I seemed to be gramatically challenged and not sure how to set up the parameter list. Can anyone offer up a suggestion. The book shows the method starting like: if request.post? user = User.find(:first, :conditions => [''username = ?'' ,
2006 Nov 22
1
Peepcode REST podcast. ..didn't anybody get it ?
And if so, I''m going a bit bonkers here and need to watch it again, but if I remember correctly, scaffold_resource generator was used, but for nested resources the show and index were removed from the controller ? Is this correct as far as what happened in the demonstration and if so is it correct as far as rest goes ? TIA Stuart -- http://en.wikipedia.org/wiki/Dark_ambient
2006 Nov 07
19
DrySQL
DrySQL is a plug-in that extends ActiveRecord to provide a complete DRY solution for Object-Relational Mapping. You''ve defined columns, constraints, relationships, and keys on your DB. With DrySQL you don''t need to re-define any of these things in your Ruby code. If you have tables, keys, and columns that don''t follow the Rails naming conventions, have a complex
2006 Aug 03
5
Rails - forms
Currently I have a registration form that is built like this: <label for="First name">First name</label> <%= text_field "user", "first_name" %><br> <label for="Last name">Last name</label> <%= text_field "user", "last_name" %><br> <label for="Email">Email</label>
2006 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However, I''d like the conversions to be in synch with the current rates. Anyone know (and this maybe out in left field) if there is some online (perhaps xml) or other data stream I can connect with in my code to output values based on user selection ? TIA Stuart
2006 Jun 09
18
Is IRB the ruby console ?
I''m running script/console but keep getting the message that irb.bat is not recognized as an internal or external command, operable program or batch file. If it means anything I am running instant rails. I can invoke irb straight forward. TIA Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 02
3
Need help with registration page
I have most of my books open as I''m trying to create this app. Still not sure how to make this work - hopefully some help / hints can get me further. First I used the "authorizing users" recipe from Rails Recipes. Though I did add some more generic type of registration fields (email, address, etc). I want the registration form on the main page(index) of the site. What I have
2006 Jun 17
4
Simple tutorial weirdness
Sorry - working on a simple tutorial but something is throwing me here. I''m supposed to get a Time.now() print to the page but it''s not working and I can''t figure out why. No errors are thrown my the page shows: Howdy, world! My name is Stuart Felenstein. This was verified at . So no time stamp showing. I went into IRB , did a Time.now() and it''s working
2006 Jun 14
13
Undefined method
I really hope this is not a bad question (as in he''s abusing the list). However I could use a little direction (even though I''m reading books, tutorials) Right now I''m getting a undefined method `category'' for 4:Fixnum The specific lines from the rhtml file are: <td><%= link_to position.category_id.category, :action => "show", :id =>
2006 Sep 28
0
Solved: was Re: Having a problem with form_for
If anyone ever has this problem ...write me :) Stuart On 9/28/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > I was using formhelpers before with 3 fields that are dependent > dropdowns and using some ajax to perform the magic. > Now that''s I''ve had to switch to form_for I''m finding one of two problems. > Renaming the
2006 Jun 23
16
Help please-draggable
I asked the other day about this problem but haven''t received a response. Trying again: I just downloaded 1.6 and can''t get a simple draggable to work, which is weird. I know it''s not my browser since the demos are working. Here is my simple code. I''ve also had the "new Draggable" between the select tags. Didn''t change anything.
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is. Anyway if I do just session[user] I get back the user id (the id from the user table) which is good. However this code does not work. <% a = session[:user] %> <% uname = User.find(:first, :conditions => id = a) %> <%= @uname %> TIA Stuart