similar to: acts_as_textiled

Displaying 20 results from an estimated 200 matches similar to: "acts_as_textiled"

2007 May 27
3
Stripping out textile markup
Hi, I have several hundred pages of text, all carefully marked up with textile, which I use redcloth to convert to html for display. Now I find I need all these pages to alternatively output plain text - ie. A-Za-z0-9 and simple punctuation only. Any suggestions on the best way to do this? My only thought is to let redcloth do its stuff, and then strip out the html tags - but it feels wrong.
2006 Aug 15
1
Camping with Dr. Nic
Campers. Dr. Nic. The new migrations in Camping''s trunk are very nice. They also open the door (just an inch) to using Dr. Nic''s Magic Models with Camping. Here''s my stab at ''er: http://require.errtheblog.com/camping/blog.rb Run that against Camping trunk. Don''t forget to `sudo gem install dr_nic_magic_models`. The hackery is in
2011 Mar 27
0
replacement for functionality from acts_as_textiled
Our app is on Rails 2.1.0 and has a couple of fields used for job descriptions. These fields use textile codes for bold, italic, underline, etc... From what I understand this is provided by RedCloth and acts_as_textiled. I have been investigating and find acts_as_textiled (https://github.com/defunkt/acts_as_textiled) is no longer maintained, and although forked into another gem (https://
2007 Feb 26
2
undefined method ... from `alias_method'
0 wicked var/www % ./script/console Loading development environment. >> r = Recipe.find :first NameError: undefined method `recipe_type='' for class `Recipe'' from ./script/../config/../config/../app/models/recipe.rb: 101:in `alias_method'' In recipes_controller: alias_method :orig_recipe_type=, :recipe_type= def recipe_type=(t) if t.nil?
2008 Nov 18
4
How to read the logs?
Can anyone tell me where I can learn how to read and decipher the logs? I''ve done a few google searches and nothing comes up. Specifically, I just uploaded my first app to a production server and it doesn''t work and I got the following even though it works perfectly fine on my development machine: ctionView::TemplateError (uninitialized constant
2006 Oct 22
3
Keeping DRY - I like a simple life!
Hi, I''m new to Ruby and Rails and I would be very grateful for some advice. I''ve got the following code. class Foo < ActiveRecord::Base include Versionable # Some methods to handle my versioned objects has_many :versions, :class_name => "FooVersion", :foreign_key => "parent_id" belongs_to :curr, :class_name => "FooVersion",
2007 Jan 16
4
question about sessions and code re-use
hey there, i have a simple model called key_words.rb the purpose of this is to hold system config data. it also holds the parameters that our system uses to judge the condition of the stuff we monitor. anyway, one of the methods is this def self.get_in_wet_list(status) wet_list = find(:first, :conditions => "name = ''wet_list'' ")
2006 Aug 23
0
emdash vs <del>
Hey guys. Is this a bug or what? >> RedCloth.new("First part -- middle part -- end part.").to_html => "<p>First part <del>- middle part -</del> end part.</p>" But http://textism.com/tools/textile/index.php says the output should be: <p>First part&#8212;middle part&#8212;end part.</p> Thing is, I *want*
2006 Aug 13
3
+ migrations in camping
Camping apps are supposed to be little independent apps, often contained in a single file, which create the database tables and manage them without hassle. These days it''s common to see in a Camping app: module Tepee::Models def self.schema(&block) @@schema = block if block_given? @@schema end end Tepee::Models.schema do create_table :tepee_pages,
2006 Aug 13
1
establish_connection method
I''m digging into rails source code. But I''ve got a problem in undestading actionrecord::base source code which is connection_specification.rb. In the body of establish_connection method, def self.establish_connection(spec = nil) case spec when nil raise AdapterNotSpecified unless defined? RAILS_ENV establish_connection(RAILS_ENV)
2007 Jan 16
1
Can't pass parameters to Ziya controller using url_for
Hi All, I''m stuck yet again. I have an action on a controller that produces a Ziya graph, which I call using the gen_chart() helper. However, I can''t seem to pass more than one parameter through to the action. <%= gen_chart( "overview_graph", url_for( :controller => ''graph'', :action => ''graph'', :graph_id =>
2006 Aug 10
6
Multiple sites using one data source
Hi, Just wondering if anyone has any suggestions as to the best way to provide access to the same data source for the (possible) creation of multiple web sites. I figure my options are: - Direct database access over tcp - ActionWebService - Wait for ActionResource I''ve done up some work with ActionWebService already, but I don''t think it''s going to work because it
2006 Jul 21
1
RedirectHandler? mongrel_rewrite?
Hey guys. I''ve been playing with RedirectHandler and it''s pretty neat, but I question its usefulness. At work we do the trendy "/javascripts/spy.1152734636.js"-style asset includes rather than the default Rails style of "/javascripts/spy.js? 1152734636". This is no problem with mod_rewrite as we run the basic Apache => Pen => Mongrel setup.
2005 Sep 12
0
grepping and splitting (with R 2.1.1)
Hi R experts I have the following regular expression problem. I am writing a basic corpus retrieval program, i.e. a concordancer/function where a user enters - a set or a directory of text files to search; - a regular expression to search for in these files. I want to provide an output in which the matches of the regular expression are listed in one central column and the neighboring columns
2007 Nov 07
0
RedCloth startup?
hello hello.. as i am both developing and using my rails app on my laptop and as i shut it down at least daily (at night - to conserve energy), i had put the ruby startup server command (ruby script/server -d) in a cronjob set to reboot. that way, by the time i opened my browser, rails was already running. presto. problem is, now that im using redcloth (via acts_as_textiled), i get an error on
2007 Sep 10
1
Using Rspec with ScenarioFixtures
I am currently trying to get Rspec to work with ScenarioFixtures. http://code.google.com/p/fixture-scenarios/ http://errtheblog.com/post/7708 I did a quick search and didn''t find any mention that any one else had gotten this to work yet. If i missed something, could you please drop me a line. Otherwise, expect a progress report when i get this working... Bret -------------- next part
2007 Aug 10
3
FixtureScenarios
This may have turned up in the RSS feeds of many of you already, but for those who haven''t seen it yet, looks intersting: <http://errtheblog.com/post/7708> > The main problem with fixtures, for me, has always been how unfun > they are. They literally suck the fun out of anything they?re > around. You throw them in your test/ directory, then suddenly > testing
2007 Oct 01
1
Pagination should be in the official plugin repository
Now that Rails has gone on a diet and components have been moved out of core and into plugins, it seems that Classic Pagination should also be in the official Rails plugin repository. Currently, it''s at svn://errtheblog.com/svn/plugins/classic_pagination. It seems inconsistent that, unlike acts_as_list, acts_as_tree, etc., pagination should reside at a separate location. This
2008 Feb 17
1
Strange bug using runt with rails
Hi all, I''m trying to include the ''runt'' gem (http://runt.rubyforge.org/) in my Rails project. I''ve tried a few ways of doing this. I''ve tried installing runt using ''gem install runt'' and then trying to do "require ''runt''" in my environment.rb, and I''ve also tried using the ''vendor
2006 Nov 13
5
apache -> pen -> mongrel cluster
Hi everyone, Recently, I''ve been reading about different deployment environments for rails and mongrel. One configuration I''ve started seeing is apache -> pen -> mongrel cluster. See http://errtheblog.com/post/35 as an example. Can someone explain to me the benefit of using Apache and Pen as opposed to either using apache as a load balancer or pen by itself?