similar to: Regex in HTML

Displaying 20 results from an estimated 8000 matches similar to: "Regex in HTML"

2006 Mar 29
1
Fixing output_compression for Rails 1.1
With Rails 1.1 the output_compression[1] plugin was broken. Once I upgraded to 1.1, I had to tweak it a bit to make it work. Mainly it''s removing the code dealing with component requests, as that''s part of rails now, and changing one function call. Get the modified output_compression.rb file from http://devblog.famundo.com/output_compression.rb and give it a try. It''s
2006 Apr 22
6
Friendly Reminder (OT)
Today, I had a tragic hard drive crash. I hadn''t updated anything to SVN in two weeks. I''m posting this here as a reminder to my beloved Rails community. Everyone, right now..... make a backup of your rails work. Make sure its on two disks. Many of you already do that automatically, but just make sure its working. Two near-release rails plugins were lost in the tragic crash
2006 Apr 07
3
List of all Models
Anyone know a pretty way to get a list of all Models? That is, a list of all classes which inherit from ActiveRecord:Base I can''t seem to figure it out! The best I''ve got is to list the /app/models directory... but, that is *dirty*. -hampton. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 16
5
Transactions in RoR
Hi, Does anyone knows how to manage transactions in RoR. Thanx
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the views with tons of <% %> ? Like this <%= start_form_tag() %> <%= text_field_tag(''category[title]'', category.title, {:size => 20, :maxlength => 128}) %> <% if not category.parent_id.nil? %> <%= select("category", "parent_id", Category.find(:all,
2006 Apr 06
3
Deploying with Capistrano via cron
I''m attempting to auto deploy a rails application to a development server periodically during ongoing development. I''ve setup ssh keys to allow the proper user auto login permissions, but have ran into 2 issues. 1. When the script is run from a cron job as the same user as I currently manually deploy from I receive an error when reaper tries to execute - "can''t
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news_controller.rb email_controller.rb library books_controller.rb pictures_controller.rb home_page_controller.rb Each of those controller has
2006 May 31
6
Restricting access to files uploaded by file_column
Hi Guys, Does anyone know how to restrict access on files that you upload in file column to certain users only? I notice that files being saved by the file_column by default are being saved under the public folder and can be accessed just by typing the URL directly. Let''s say you have a Login system where you restrict access to some pages and allow those users to upload their own
2006 Jun 15
13
Best Approach to a ''Down for Maintenance'' Page?
What is the best way to implement a ''Down for Maintenance'' page across your Rails app? Ideally I would like to have a button in my admin section that toggles the display of a ''currently under maintenance'' page to every public request to the app (possibly with some dynamic content like estimated down-time) except for: - - requests from a specified IP
2006 Sep 19
2
[OT] SVN: Anybody use BDB?
I''m moving my Subversion repository to a new server. The old server uses Berkeley DB/Sleepycat and if memory serves, it was a lot of effort to set that up -- so I think I''ll try FSFS. Does anybody use BDB and prefer that over FSFS? Or had any problems with FSFS? (I never had any problems with BDB, performance or otherwise, btw.) Thanks, Joe -- Posted via
2007 May 26
1
make_resourceful 0.1.0 Release!
I am extremely proud to put the code up live for make_resourceful! I have been astonished by the positive feedback I''ve been receiving since our talk at this year''s RailsConf. So much pressure to get this thing out! If you haven''t heard about it... then check out my slides from railsconf http://www.hamptoncatlin.com/assets/2007/5/21/make_resourceful.pdf or listen to the
2006 Apr 13
8
DevTower Beta3 Release!
DevTower Beta3! (0.3) I''m proud to announce some major changes and improvements to DevTower in this beta release! First and foremost, DevTower is now a full plugin. Also, DevTower works (only) with Rails 1.1. ==== ABOUT ===== DevTower used to synchronize the development of Ruby On Rails applications with developers working simultaniously on multiple systems with Subversion. DevTower
2006 Jun 19
4
Oh, Don''t Forget... launches!
Just wanted to send a quick thank you to the contributers on this forum. Today, with the help of many around here, I launched ohdontforget.com! Ohdontforget.com allows US visitors to schedule sms text messages for a specific date and time, for free. Although I have officially, launched, there is still room for improvement. I used this project as a learning opportunity for Ruby on Rails and
2007 Mar 16
1
Polymorphic find_or_create bug
Today I just spent 3 hours (and before a demo!) trying to figure out why my polymorphic association fields were breaking. Turns out someone else put in a patch for this 6 months ago. I''m not sure if its the same solution I''d use... I''d rather find_or_create attempt to use AssociationProxy#build if its available and only Base#new if we''re not on a proxy.
2006 Jun 22
18
Ruby on Rails Live CD
I''m pleased to announce the initial release of the new Ruby on Rails LiveCD Linux Distribution. http://www.railslivecd.org The RailsLiveCD offers most of what an average Rails developer needs right out of the box! That includes : Ruby 1.8.4 Rails 1.1.2 Capistrano 1.1.0 Mongrel 0.3.13 Rake 0.7.1 Subversion MySQL 4.1.12 MySQL Administrator RadRails KDevelop Kate and many many others!
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting toolbar that will be added to all of your text areas that utilize the TEH feature. TEH was developed to provide a more WYSIWYG-ish option for users of our Rails CMS called slate while still letting us use Textile. ====================== = So what are the features? ====================== These are a list of the current features
2006 Apr 06
8
Fastest learning path to RoR
hi! with a 4GL background, wanting to learn RoR, what is the fastest learning path i should take? should i go grab a RoR tutorial, and learn Ruby along the way, or start with plain Ruby first? thanks for any inputs!
2006 Jun 20
22
New e-book - The Money Train
While talking about my RailsConf presentation with Ben Wiseley, he suggested writing a book on the same topic... so I did! The Money Train is an e-book about building e-commerce sites using Ruby on Rails. Read my blog entry about it at http://www.bencurtis.com/archives/ 2006/06/rails-e-commerce-e-book/ or head to http:// www.agilewebdevelopment.com/book to dive right in. As always, a big
2006 Mar 30
11
Capistrano/SVN: Deploying different database.yml for live?
Greetings, Today I''ve been working out how to begin using Capistrano and so far I''m impressed. Even in my situation, learning Rails and deploying to a single server, it''s incredibly helpful. I do have one small question though: In using Subversion I''ve used the "ignore" feature to ignore my local database.yml file, because my local database and
2006 Mar 05
5
A nicer and gentler form of spawner
I was working on deploying an app with switchtower, and I really dislike the way spawner is implemented. The way it will relaunch the dispatcher all the time just to let it die if the port is in use is too brute force for my taste. As we''re in a ruby script, why not let ruby find out if the port is in use? Using the TCPServer class we can try and bing to the port. If we succeed, it means