similar to: strange charecters after redcloth usage

Displaying 20 results from an estimated 2000 matches similar to: "strange charecters after redcloth usage"

2006 Jul 18
2
Testing which RuntimeError is raised
I am just starting to use unit testing. Way cool. But I am not finding very clear docs on assert_raise. I have managed to write a test that tells me that the destroy I am trying to test fails with a RuntimeError (as it should). However, I would really like to test that it rails for the specific reason I have in my model. How can I get more specific? Am I going to have to create my own exception
2007 Nov 07
11
Links go to ''localhost''
I am using Apache2.2 + Mongrel on my machine. Now I am accessing it over LAN. When I enter http://mymachinename/myapp it opens fine but when I click on any link in my rails app, it replaces mymachinename with localhost (http://localhost/myapp/controller/action) and thus I am unable to access it from remote location.
2007 Nov 01
9
Mongrel + apache 2.2 + proxy error
Hi, I have a setup with apache 2.2.6 proxying requests to a cluster of 5 mongrels. Occassionally, I receive the following error in the logs: [Tue Oct 30 12:00:28 2007] [error] (70007)The timeout specified has expired: proxy: pass request body failed to 127.0.0.1:8013 (127.0.0.1) from 213.205.247.171 () [Tue Oct 30 12:00:28 2007] [error] [client 213.205.247.171] Handler for proxy-server returned
2008 May 19
2
god - start command exited with non-zero code = 1
Hi, I''m trying to use god to monitor my mongrels. When they are running everything looks OK but when a mongrel process dies and god tries to restart it I get the following error: command exited with non-zero code = 1 The weird thing is that if I try use the exact same command as god is using but on the command line then the mongrel starts back up. I''ve seen this error
2006 Sep 08
4
Does acts_as_attachment :storage => :db_system work?
I found the post about needing to install acts_as_attachement_1_1_6 if you are not on edge rails. But I am having trouble getting db_system storage to work. As far as I can tell in from the database, things are working, but I don''t see how my model table hooks up with the db_files table so I am having trouble altering the image_tag from the tutorial
2011 Nov 13
2
Rspec not finding my examples
I am following the examples in chapter 2 of "Rails 3 in Action" and for some reason I have to specify the full path + file name to get my specs to run. The book and rspec docs led me to believe that I should be able to just type ''rspec'' and rspec would find any spec files in a directory called spec. I even tried adding a .rspec file with "--default_path spec"
2005 Nov 03
12
Installation of plugins/gems/mix-ins confusion
I''m running 0.14.2 and am a little confused as to the best way to install mix-ins. I''m specifically using "acts_as_paranoid" as an example (as it is one of the simpler implementations). It is a gem and can be "installed" as a gem, but then what''s the best way to integrate it into my app (require_gem?). I''ve seen recommendations to require it
2007 Feb 05
3
Kernel panic kickstarting to CentOS 4
I have an older server I am trying to update to CentOS 4.3 but I can't get to the installer screen because the machine kernel panics when booted from the install CD. The error message I get is: Kernel panic - not syncing: include/linux/smp_lock.h:25 spin_unlock(kernel/sched.c:c035) not locked The boot messages before this point are mainly to do with acpi including: acpi_ps_parse_anl
2006 Jul 16
1
Help: migrating data from fixtures
I''m attempting to load some test data into a table , following along with AWDWR example. My migration is failing on the user connection. C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `rake_original_const_missing'': uninitialized constant User (NameError) So in this line from the migration file: f =
2005 Dec 29
3
Storage for images: Database BLOBs or files?
I can''t decide where store images for my Rails application. -- Posted via http://www.ruby-forum.com/.
2006 Mar 08
8
New ajaxy CMS on Rails: adminpages
hey, i''ve created a basic content management system using rails and scriptaculous. I posted a first version last week, but I heavily extended it since then. Features: Pages are arranged in a sortable tree (sortable by drag and drop) Pages have "nice" URLS (no /index?articleid=97361496 or something) Cacheing on page basis every page has a layout with a number of columns page
2007 Nov 29
4
100% CPU use
I needed to restart my mongrel cluster today (updated a Rails controller). And my mongrels didn''t really come back up. They bind the port but don''t respond to any requests. I can''t find any log file that has useful information. These were running fine until I tried the restart. And I have not changed any software versions in a month. (And yes, I tried rolling back the
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m trying to display user input that will sometimes have code references in it. This strips out all tags. I would like for the tags to be displayed but not read as html. Thanks in advance! <%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %> charlie bowman recentrambles.com -- Posted via
2007 Jul 30
3
validates_uniqueness_of doesn't work if value tested is numeric and column is string
Hello all, I am working through the depot example in the rails book. If I add a validates_uniqueness_of to a string column in the model, and then try to create a record with a number in this string column I get an SQL error. Looks like the SQL generated to test for uniqueness does not quote the value if it''s numeric even though it''s comparing against a varchar column. It does
2006 Jul 21
20
New version of AWDwR
Folks: I''ve uplaoded the B1.05 version of AWDwR. It fixes a number of reported errata (and a few that weren''t reported :), and adds two significant changes: 1. It now uses the new Active Record decimal -> BigDecimal conversion. I''ve personally been waiting for this for a long time, and I''m really happy it''s now part of core. However,
2008 Nov 06
2
redcloth executable removed from gem?
Hello, I have the RedCloth 4.x gem installed on a new machine. I used to use the redcloth command line tool/executable ocassionally. Can anyone clarify if it''s still part of the RedCloth 4.x gem series? Thanks. PS: I checked the sources. And the executable source resides in bin [1]. However, checking the Rakefile that generates the gem package I can''t find any
2010 Apr 13
1
BBCode Fork of RedCloth
how do you install this? especially on rails 3? putting gem "redcloth", :git => "git://github.com/ROFISH/redcloth.git" doesn''t work. and do nested tags like [quote][quote][/quote][/quote] work? -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
5
RedCloth and Rails
Has anyone had any experience with RedCloth for rails. It is a textile system. I haven''t spot checked the code and was wondering if it caused any lockups or other issues. http://whytheluckystiff.net/ruby/redcloth/ -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize. I have a string: "h2. hello _what''s up?_" which is being textilized as: <h2>hello<br /> <em>what&#8217;s up?</em></h2> so no paragraph and h2 wrapped all the way. the input is coming from firefox 1.5.2 on a mac Anybody got any idea what the problem might be? --
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