similar to: newbie question about .titlecase of .titleize

Displaying 20 results from an estimated 1000 matches similar to: "newbie question about .titlecase of .titleize"

2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all, I wanted to draw some attention to a couple of very small multibyte-related patches I believe should be included before Rails 3.0 RC1: * Use String#bytesize rather than String#length in exception templates: This is a simple case where string length is checked, but bytes is needed, so it breaks with string with multibyte chars.
2006 Apr 05
4
Why does titleize remove hyphens?
item.title = ''alpha-bravo'' item.title = item.title.titleize puts item.title alpha bravo I didn''t notice this with 1.0 - a new bug in 1.1? Joe -- Posted via http://www.ruby-forum.com/.
2006 Sep 28
3
Quick Question: Opposite of Titleize?
Anyone know what the opposite of titleize is? I want to do ''My Title" to ''my_title'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2011 Mar 10
4
Multi-model forms
Hi guys, I''m new to ruby and rails and I''m working on multi model forms, specifically 3. I''m using this http://guides.rubyonrails.org/getting_started.html as a start, and its got a 2 Model example but I cant seem to get the last one working. These are my models: Country name:string code:string (has_one :address) Address address_line1:string
2007 Jun 05
2
.activate() behaviour
Hi all, I''m trying to understand why the following code doesnt work... ---------------------------------------------------------------------------------------- <html> <head> <title>blabla</title> <script type="text/javascript" src="prototype.js"></script> </head> <body> <form action="bllalba">
2008 May 08
1
Textfields
Hey everybody, I've just merged my TextField hacking into master. It's basically a big refactoring and test addition thing, to get signals and variables report something sane. It's not complete yet, but I wanted to have it in, so we don't get too many merge conflicts when Pekka fixes the HTML parsing bugs. Here's a partial list of what's missing so far: - vertical
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
doc/Makefile.am | 4 libswfdec/swfdec_text_field_movie_as.c | 304 ++++++++++++++++++++++----------- 2 files changed, 205 insertions(+), 103 deletions(-) New commits: commit 0d49e6e7e7c5b80fd12e3d117593a10848688a89 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sun Oct 14 17:43:27 2007 +0300 Update doc/Makefile.am to handle edittext to text_field
2008 May 01
20
link_to meta programming question
I am trying to create a dynamic menu using the following construct: <%- menu_list = [ ''first'', ''second'', ''third''] -%> <ul> <%- menu_list.each do |m| -%> <%= link_to "List All #{m.titlecase.pluralize} <m>_path %> <%- end -%> </ul> What I cannot determine is what I have to do to replace
2010 May 05
0
Auto_complete with has_one association
Hi, Have an issue with the rails auto complete, it works fine but I don''t know how to find the id element search in the textfield. Here is what I''ve done: <%= text_field_with_auto_complete :user, :ville_name, { :size => 15 }, { :url => formatted_villes_path(:js), :method => :get, :param_name => ''search'' } %> Model: class User <
2008 May 03
1
[Bug 15814] New: unable to view new york times feature
http://bugs.freedesktop.org/show_bug.cgi?id=15814 Summary: unable to view new york times feature Product: swfdec Version: git Platform: Other URL: http://www.nytimes.com/slideshow/2007/08/31/realestate/2 0070902_SKETCH_FEATURE.html OS/Version: All Status: NEW Severity: normal
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
Hi Lyle, I noticed that when creating a FXTextField with TEXTFIELD_ENTER_ONLY it still sends messages to its target when other keys than KEY_Return are pressed. I usually create a textfield this way: textfield = FXTextField.new(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY) textfield.setText(aStr) textfield.setFocus textfield.move(x, y, w, h) textfield.show This way only the enter key should
2007 Oct 24
1
simple_captcha + model
Hi Experts, l have model called User class User < ActiveRecord::Base apply_simple_captcha end in view <%= show_simple_captcha(:object=>"user") %> in controller @user = User.fiind(params[:id]) if @user.valid_with_captcha? if @user.update_attributes(params[:use]) -------- else --------- end else -------------------- end as per this
2009 Jun 25
2
variable driven summary of one column
Hello, how can I get a variable driven summary of one column of my data.frame? Usually I would do > summary(data$columnname) to get a summary of column named "columnname" of my data.frame named "data". In my case the columnname is not static but can be set dynamically. So I save the chosen columname in something like variable <- "columnname" but how can I
2010 Jun 23
0
Rails 3 - AJAX Response
Hi, I need help with some AJAX in rails 3. So basically, I have a select option in my index page for my User model. This select option is a form that modifies the user''s type. The " :remote => true " works and the type is changed when hit the submit button. But, nothing happens in the browser. The user is updated. I''m actually not sure where to put either my JS /
2006 Mar 29
2
intercepting messages from FXScrollBar toFXScrollArea
Hello Lyle, the Task, I want to accomplish: I''ve created a little app that is used on a PC with a touch screen. To ease hitting the keys, the keys and the scrollbars are really big (45 pixels). So the ScrollCorner is also really big and I just wanted to use this space by moving the ScrollDown Botton down to the position of the ScrollCorner (like the attachment shows) The code looks like
2007 Jan 10
0
Ajax.InPlaceEditor Create Form question
I''ve successfully combined Ajax.Inplaceeditor with another autocomplete javascript. However, I''m trying to alter the form that is created. Is there a way to prevent the autocompletion feature when typing in the form? I tried messing with the controls.js file: textField.obj = this; textField.type = "text"; textField.name = "value"; textField.id =
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
libswfdec/swfdec_as_interpret.c | 3 libswfdec/swfdec_as_strings.c | 14 libswfdec/swfdec_load_object.c | 178 +--- libswfdec/swfdec_load_object.h | 21 libswfdec/swfdec_load_object_as.c | 71 + libswfdec/swfdec_loader.c | 75 +
2007 Oct 28
1
test/trace
test/trace/Makefile.am | 11 +++++ test/trace/text-field-init-native-5.swf |binary test/trace/text-field-init-native-5.swf.trace | 2 + test/trace/text-field-init-native-6.swf |binary test/trace/text-field-init-native-6.swf.trace | 2 + test/trace/text-field-init-native-7.swf |binary test/trace/text-field-init-native-7.swf.trace | 2 +
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email address! ---- Attached is a patch to add external (AJAX) loading of content to the InPlaceEditor. 2 extra options have been added: loadUrl: a URL to load the content from. If this is present, it will be used instead of the innerHTML. fieldId: I had to add this so we know what the text field is when we''ve
2005 Sep 14
1
Python binding and Xapian fields
Hi all, I have spent more than 3 hours trying to figure out how Xapian documents fields works ! It seems that I failed so I ask for help. I am using Xapian 0.9.2 with Python bindings and Xapwrap (Python wrapper for xapian) on Fedora Core 3. I have added custom fields like 'uri', 'title', etc and I wish to view them in my Omega results. I am also using an Omega XML customized