search for: titleiz

Displaying 19 results from an estimated 19 matches for "titleiz".

Did you mean: titleize
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
...ple case where string length is checked, but bytes is needed, so it breaks with string with multibyte chars. https://rails.lighthouseapp.com/projects/8994/tickets/4727-use-rackutilsbytesize-instead-of-length-when-determining-request-content-length-for-showing-exceptions * Add AS::Multibyte::Chars#titleize This makes "café".mb_chars.titleize "do the right thing," in the sprit of a few other patches I recently submitted. https://rails.lighthouseapp.com/projects/8994/tickets/2794-titleize-missing-in-activesupportmultibytechars I realize Railsconf is going on (I''m here!)...
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...
2006 Jan 03
0
newbie question about .titlecase of .titleize
i just started to work with ROR, and made a form with scaffolding. I achieved to add some extra inputvalidation but i also want to add some code that changes some specific textfields with the .titlecase / .titleize and then stores it to the database. I had to add the validation code to the model file, is this also the place to add the titlecase ? the columname of the regarding textfield is last_name(db)/lastname(ror) -- Posted via http://www.ruby-forum.com/.
2006 Jan 28
13
What''s the verb form of id?
...the String class that turns an arbitrary line of text in to an identifier, e.g.: "My, what a beautiful day!" => "my_what_a_beautiful_day" "(anb*#NF(AMNV" => "anb_NF_AMNV" We''ve got all these great names already like underscore, classify, titleize and things like that. I''d like to name my new method similarly. What would the verb form of id, or identifier, be? idize identifize identitize Maybe? Duane Johnson (canadaduane) http://blog.inquirylabs.com/
2011 Mar 08
1
form_tag for search bar with Rails 3.0.5
...or a submission to the index action, rather than the show action. Currently, I have the following in my index.html.haml: = form_tag({:controller => ''assets'', :action => ''show''}, :method => :GET) do .field =label_tag(''Job Number'').titleize %br/ =number_field_tag :id .actions =submit_tag ''Search'', :name => nil This gives me the following error: No route matches {:controller=>"assets", :action=>"show"} $ rake routes | fgrep asset ) assets GE...
2010 Jun 23
0
Rails 3 - AJAX Response
...ss params[:change_type_value] if @user.category == 5 @user.category = 0 else @user.category = 5 end respond_to do |format| if @user.save format.html { redirect_to( users_path, :notice => "Sucessfully changed " + @user.name.titleize + "''s category" ) } format.js else format.html { redirect_to( users_path, :notice => "Failed to change " + @user.name.titleize + "''s category" ) } end end end end # DELETE /users/1 # DELETE /use...
2006 May 23
6
How to list all models of an application?!?
How can I get a list of all model classes in the domain of a Rails application (all models, both in "app/models" and in components/somedir/model.rb)? Thanx in advance for your precious help! Edoardo "Dado" Marcora
2006 Aug 06
5
Click Table Headings to Sort..
Hi, I''m looking at using my table headings as links that reload the page and sort it by the field which was clicked on. As is common, if the list is already sorted by the field, it reverses the order. I''m now looking at a good DRY way to do this. I have 3 fields: name, date, race. I''m setting a parameter called so (for sort order) to either "up" or
2006 Mar 05
1
capitalize each word in a string
How do you capitalize each word in a string? Essentially, Ruby''s version of PHP''s ucwords()? Thanks. -- Posted via http://www.ruby-forum.com/.
2011 Jul 22
3
ANNOUNCE: Puppet Dashboard 1.2rc3 available
...Add a link to the home page to download nodes in CSV 1af5e86 (#7007) Add support for CSV to nodes index 2829a8b (#7007) Add custom CSV output for nodes with resources 11aa643 (#7007) Use a custom property list for ResourceStatus.to_csv fc0fe85 (#7007) Add support for CSV output d2184e4 (#7537) Use #titleize for report tab names. 12b035d (#7537) Add reasonable defaults for report tab names. b230077 (#7560) Clean up the Dashboard index for 0 nodes. 6fe8513 (#6991) Add the Node Status summary graph. 8e70035 (#6991) Massage Node named scopes. 57d6b6b (#6991) Cleanup of excessively long lines. db61b1b (#6...
2006 Mar 30
4
Select List to change type of STI class
Hi: I''m trying to create a drop-down list to change the type of a Single Table Inheritance class. I tried this: <%= select :user, :type, [ [''Author'', ''Author''], [''Editor'', ''Editor''], [''Administrator'', ''Administrator''] ]
2006 Apr 18
4
how would you take the duplication out of this?
i have these two really similar methods in my addressbook controller. def edit_company @company = Company.find(params[:id]) if request.post? and @company.update_attributes(params[:company]) flash[:notice] = ''Company was successfully edited.'' redirect_to :action => ''show'', :id => @company end end def edit_person
2006 Feb 06
4
Memory Issue while looping through CSV file
I have a site on a shared host at TextDrive. I have an import process that imports a CSV file into the database using a ruby script executed using script/runner. TextDrive has a memory limit which I am hitting and the process gets killed. I get through to about 400 records before it dies. I guess each time I instantate a new object for each record I am using more memory but thought I was using
2011 Aug 06
0
Announce: Dashboard 1.2rc6 available
...Add a link to the home page to download nodes in CSV 1af5e86 (#7007) Add support for CSV to nodes index 2829a8b (#7007) Add custom CSV output for nodes with resources 11aa643 (#7007) Use a custom property list for ResourceStatus.to_csv fc0fe85 (#7007) Add support for CSV output d2184e4 (#7537) Use #titleize for report tab names. 12b035d (#7537) Add reasonable defaults for report tab names. b230077 (#7560) Clean up the Dashboard index for 0 nodes. 6fe8513 (#6991) Add the Node Status summary graph. 8e70035 (#6991) Massage Node named scopes. 57d6b6b (#6991) Cleanup of excessively long lines. db61b1b (#6...
2010 Sep 27
7
Uploading photos
Hi all, Learning RoR (and loving it!) to develop a website. A requirement of the website is enabling users to upload photos to be made viewable (dynamically) on the website. Is this something I can develop with RoR? Thanks, Jeff -- 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
2009 Jul 08
7
running a unit test over and over in script/console
I started doing this: $ RAILS_ENV=test script/console >> load ''test/unit/models/example_test.rb''; r = Test::Unit::TestResult.new; reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results and then just hit up arrow and run that same line again over and over in script/console. That way I can make changes to the test and app code, and don''t have to
2011 Aug 11
17
f.collection_select: what are the parameters?
The rails docs are so horrible on the collection_select method. They need to show a *complete* form, and show two examples: one that calls f.collection_select(), and another that calls collection_select(), and explain the differences. Given this line: f.collection_select :topic, Topic.all, :id, :category What the !@#$!@#$ is :topic? -- Posted via http://www.ruby-forum.com/. -- You received
2009 May 27
9
Contingent Select Boxes - 2 Q's
...9; is selected #it converts to UK and gets its "states". It also handles the default, which is already specified properly q = params[:country] if(q!=Carmen.default_country) q1 = q.gsub!("_", " ") if(q1!=q && q1!=nil) q = q1.titleize else q.capitalize! end q = Carmen::country_code(q) end @states = Carmen::states(q) end