similar to: Limiting the number of caracter displayed

Displaying 20 results from an estimated 8000 matches similar to: "Limiting the number of caracter displayed"

2006 Mar 23
2
Displaying only titles that starts with a defined caracter.
Hi, I would like to know how to display only titles of products that starts with a defined letter (ie: titles that begin with A) Here is the method that I use to place all titles in alphabetical order: class Livre < ActiveRecord::Base validates_presence_of :titre; def self.alpha find( :all, :order => "titre ASC" ) end end
2006 Mar 31
5
Titles in URL ?
Hi! I have an article website and would like to have the title of the article in the URL. and not domain.com/show/id ie: http://domain.ck/articles/how-to-become-a-ror-master/ How to change a title with special caracters like: '', :, ?, !. to something that works in the URL. Thank you! -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
6
Pagination ...
Hey, I have a CMS I am building right now and I would like to my articles to split in many pages. Here is what I want to do: Once the article reaches 150 words or so it create a link to Page 2 of the article and, on page 2, it displays the rest of the article... How can I do that ? (note that you explain this to a beginner :) Thank you! -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
9
Display problem
hey guys, Does anyone know why the french letter "?" is displayed as a question mark "?" inside an <h1> tag ? -- Posted via http://www.ruby-forum.com/.
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2006 Aug 02
7
String lenth limit
Hi, I''ve seen some time ago a function which, given a string like "this is a very long string" would return , for example limitin it to 10 chars "this is a..." , but I can''t remember where..... I''ve searched throwth the apis of rails and ruby itself and I can''t find it. Thanks everybody..
2005 Nov 24
1
caracter set problem
Hi, I'm from Brazil, and I'm having a problem with special caracters when mounting shares upon Windows XP and 2003. Even using the options codepage=850 and iocharset=utf-8 some caracters like ?, ?, ?, ? are gone. I've tried a lot of combinations of codepages and charsets, but the best result is the sample above. Thanks in advance Marcos?Antonio?Dellazari 55 - (45)?3520-6795
2007 Feb 23
1
some caracter dont work with JGR
Hi, I testing JGR and I like, but my ~ caracter dont work. My keyboard is Brazilian ABNT2. The key is OK, only in JGR it dont work. Anybody have any idea about this? Thanks Ronaldo -- Mais variado que baldea??o em Cacequi. -- > Prof. Ronaldo Reis J?nior | .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva | : :' : Campus Universit?rio Prof. Darcy Ribeiro, Vila
2014 Feb 05
1
[Bug 897] New: Numbers of caracter in the name of set.
https://bugzilla.netfilter.org/show_bug.cgi?id=897 Summary: Numbers of caracter in the name of set. Product: nftables Version: unspecified Platform: x86_64 OS/Version: Debian GNU/Linux Status: NEW Severity: enhancement Priority: P5 Component: nft AssignedTo: pablo at netfilter.org
2008 Jun 09
16
display "..." for text LONER than a certain length...
I am working on an app that has user generated content. What I''d like to do, is display X characters of, say, a title and put "..." for the rest. This sounds like something you see in soc networking type app and wondering if there is some code out there to do this. thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed
2010 Sep 23
1
Patch to fix docs for auto_link
Hi I''ve contributed a patch which fixes an incorrect example in the documentation for auto_link in ActionView::Helpers::TextHelper. The example uses truncate in the old style of tuncate(text, length) which no longer works, so I''ve patched it to use the new tuncate(text, :length => n) style.
2013 Feb 18
3
Cortar una cadena por un caracter solo cuando no forma parte de una subcadena entrecomillada
Hola, ¿qué tal? Tengo el siguiente problema. Me llegan (simplificando) cadenas del tipo 1,2,"algo"; 3,"cosa"; 4,2,3,7; y tengo que partirlas por el caracter ";" para meterlas en una lista. Lo hago con strsplit y no tengo problemas... ... hasta que recibo cadenas como 1,2,"algo;todo"; 3,"cosa"; 4,2,3,7; en las que existen puntos y coma
2006 May 15
1
Simple: How to use TextHelper in a controller
I''m having trouble succesfully getting access to the ActionView::Helpers::TextHelper.strip_tags method from one of my controllers. If I try to call it directly using ActionView::Helpers::TextHelper.strip_tags I get undefined method `strip_tags'' for ActionView::Helpers::TextHelper:Module What is the preferred way to make ActionView helpers available to a descendant of
2006 Aug 10
3
Want to use a view helper (TextHelper) in a model class
I have a model that deals with HTML and I want to use the text_helper.sanitize method to strip the HTML of Javascript. However, it doesn''t appear that I can get easy access to the text_helper methods from within a model. Anyone have any suggestions for how to do this? In general, I think that there are some ActionView helpers which are generic enough to want to use in a model class.
2006 Mar 19
3
Multiple website section = multiple controllers ?
Hi! I am totally new to ruby on rails and dynamic website creation (never done php or asp). I am reading "Agile Web Development with Rails" by D.Thomas, and I am wondering if I need to create multiple scaffold and controllers to be able to create a really basic CMS. Part of the website needed: -http://www.domain.com/ -http://www.domain.com/about/ -http://www.domain.com/articles/
2006 May 16
3
Best way to handle namespace collisions?
All, I have a little namespace collision here. I am trying to use both RubyfulSoup (an HTML parser - which I highly recommend by the way) and the ActionView::Helpers::TextHelper class. Within the TextHelper class, there''s an attempt to create a new "Tag" object. However, Tag is also defined in the RubyfulSoup gem and it is _this_ Tag class whose initialize method is
2006 Jan 09
3
XSS prevention with Rails
Hi! I wanna take a stab at implementing better XSS prevention for Rails. This time for real =) I''m wondering what would be the better way, clean everything up with tidy first and then do the rest with regexp or regexp all the way? Anybody done this before? Thanks! Ciao! Florian
2006 Feb 25
7
Help with DRY: too much code in my view
I''m a newbie to rails, and really to the whole DRY and MVC thing as well, except where I accidentally fell into things doing it my own way in the past. I''ve got a fairly complex DB structure I want to create an interface for using Rails. Getting simple tables to display, edit, save, not too much problem there. But where I''m having trouble is figuring out where to
2009 Jan 06
1
How to access text helper and url helper methods in model
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper Also