search for: text_helper

Displaying 20 results from an estimated 20 matches for "text_helper".

Did you mean: test_helper
2006 May 22
0
Bug in text_helper.rb
I think there''s a logical mistake in ActionViews text_helper.rb. The TextHelper modul defines the methods textilize and textilize_without_paragraph in a begin rescue block that calls require_library_or_gem "redcloth". The problem is, that this call will always fail and the methods will never be defined when you install RedCloth as a plugin unde...
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...
2006 Jul 11
0
better way to include helpers into application controller/test_helper?
...ar version is duplicated in test_helper. There must be a better way to include common functionality like this that gets used across layers? Maybe at the very least a way to include it at the class level and instance level with one line? # provide access to text helper at class level def self.text_helper Helper.instance end # instance level def text_helper Helper.instance end # include text_helper as singleton class Helper include Singleton include ActionView::Helpers::TextHelper end - Rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.co...
2006 Sep 25
9
acts_as_ferret highlight
I am getting nil returned when doing the following: r.highlight(@condition, :field => ''body'') ''r'' is an instance of the a_a_f model. ''body'' is a tokenized saved field. I am running latest ferret and a_a_f trunk. Am I doing something wrong? -- Posted via http://www.ruby-forum.com/.
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and undefined method error. Can I even use these methods within a model? I tried to use auto_link and it failed too. What am I doing wrong? Furthermore, would it be recommended I format text before saving it to the database? Advantages or disadvantages? -- Posted via http://www.ruby-forum.com/.
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I input my text into, which will then be put into an e-mail and sent out. The problem I am having is when there is a single line break. Multiple line breaks work fine (hitting enter twice), but single line breaks don''t seem to work properly. Take the following input: Line1. Line2. Line3. Line4. Using
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< any ideas ? Application works fine with rails 2.1.0 Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~---------~--~----~------------~-------~--~----~
2018 Nov 01
0
SAY command (mis)behaviour?
> > I boot my system with the attached extlinux.conf, which has some > entries to boot old kernels. When i'm booting the old versions i'd > like to have a reminder message recalling me that the most recent > kernel is not being used, so that i don't forget to switch back to it, > for example after many days of uptime. > > Now, is it normal that _every_ SAY
2006 Jun 24
0
superclass mismatch for class Tag (TypeError)
...; from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' from /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/text_helper.rb:168 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `...
2006 May 11
0
Using action view helpers (strip_tags) in a rake task?
...works great. However, I''d like to use strip_tags() to remove all HTML from some of the fields I''m converting, but I can''t figure out how to include/use/require/load/etc the right stuff to make this work. For now, I just copied the strip_tags() definition out of the text_helper.rb file, but that is evil(tm)... Am I just missing something obvious? Thanks! -philip
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff) works fine though. Isn''t textilize supposed to produce the same output? Or do I need to tweak something? Joe -- Posted via http://www.ruby-forum.com/.
2006 Apr 14
0
Tickets #4343, 4725 and 4744
...fect correction and one enhancement). Would it be possible to have feedback on them ? #4343 : allow to generate correct fixture for us people that use rails with a legacy database and different naming convention for the primary key #4725 : fixes layout of generated help in text_helpers #4744 : allows to add a default option to in_place_editor_field: if the method ''content'' of your model return nil, you perhaps will prefer to display ''no content'' in the span, and be able to edit it, than nothing and nowhere to c...
2007 Dec 17
0
[CruiseControl] RubyOnRails build 8425 failed
...emplate/erb_util_test.rb Revision 8423 committed by david on 2007-12-16 23:55:22 Fix doc (closes #10526) M /trunk/actionpack/lib/action_controller/session/cookie_store.rb Revision 8424 committed by david on 2007-12-16 23:59:23 Docfix (closes #10493) M /trunk/actionpack/lib/action_view/helpers/text_helper.rb Revision 8425 committed by david on 2007-12-17 00:06:24 Added OPTIONS to list of default accepted HTTP methods (closes #10449) [holoway] M /trunk/actionpack/CHANGELOG M /trunk/actionpack/test/controller/request_test.rb M /trunk/actionpack/lib/action_controller/request.rb See http://cru...
2009 Feb 03
2
Rails 2.3 problem...
...ottedSeparator"></div> 159: <h3><%= "What do you think about ''%s''?" / @place %></h3> 160: <% end -%> 161: <% form_for([@place, @review = Review.new]) do |f| %> actionpack (2.3.0) lib/action_view/helpers/text_helper.rb:32:in `concat'' actionpack (2.3.0) lib/action_view/helpers/form_helper.rb:252:in `form_for'' app/views/places/show.html.erb:158 Any help is greatly appreciated! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received...
2009 Jul 31
1
how to ignore case in highlight() function?
how to ignore case in highlight() function? -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
15
i18n when?
Hi all, Just wondering... Are there any plans to include i18n support in Rails anytime soon? I guess this is about the only feature I''m realy missing in Rails. Any thoughts? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/63681052/attachment.html
2007 Dec 07
4
strange error on mock proxy
...e?'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:304:in `option_value_selected?'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:163:in `options_for_select'' vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb: 29:in `inject'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:161:in `each'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:161:in `inject'' vendor/rails/actionpack/lib/action_view/helpers/ form_option...
2018 Nov 01
2
SAY command (mis)behaviour?
Hi, I have a small issue with the SAY command and i hope you can clarify it out for me. I boot my system with the attached extlinux.conf, which has some entries to boot old kernels. When i'm booting the old versions i'd like to have a reminder message recalling me that the most recent kernel is not being used, so that i don't forget to switch back to it, for example after many days of
2005 Dec 21
8
textilize - redcloth
Hi, I''m using textilize with redcloth 3.0.4. Everything works best except that paragraphs are not translated as an HTML paragraph When I write something like: *first paragraph* second paragraph the output is without paragraph: *first paragraph* second paragraph Any help??? Thanks Jörg
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
...gickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/partials.rb:143:in `render_partial_collection'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/text_helper.rb:29:in `each_with_index'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in `each'' /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locob...