similar to: How do I? Same Model, Different Controllers, Different Validations?

Displaying 20 results from an estimated 2000 matches similar to: "How do I? Same Model, Different Controllers, Different Validations?"

2006 Mar 23
5
Dirt simple .rcss templates
There was some discussion on this list recently about doing .rcss templates in Rails using a custom template handler. I''ve come up with a very simple way to support rcss without a handler. Turns out all it takes is a route and an action that calls render(:file...). I put a full write-up on my blog earlier today:
2006 Apr 16
2
Making requests in order
Hello all, This is an interesting problem I have been working on. What I have is a little multiuser project request tracking application. What happens is that I log in and create projects and assign people to the projects. Each project has steps associated with it, and the steps need to be done in a certain order. Now, I have to request that the assigned person perform each of the steps, and
2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be able to view the application from any browser. However, I can only see my application from a browser opened up on the localhost. When I use any other browser it times out. I have already modified the following line in the /script/server file (I''ve tried the numeric ip address also) so that it is the real ip
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine as this site is down and script/plugin discover is broken as it fails when trying to add plugin repositories giving the message as below; Add http://svn.northpub.com/plugins/? [Y/n] y (eval):3:in `each'': undefined method `[]'' for
2005 Oct 03
3
WriteBoard for Programmers? (code support)
Anyone think it''d be useful to make a WriteBoard type application that supported ruby, html, etc. and allowed programmers to collaborate on writing scripts or just code in general and track each others changes? Just a thought. - Jim
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower? core rails has been getting nice regular updates to the beta gems, but switchtower is still back at 1962.
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL backend. The client now wants us to add various workflow features that will eventually expand into SOAP web services. These workflow features include tasks such as automatically sending reminders for due tasks, or if a particular set of information hasn''t been logged by a certain time to automatically send an email
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain to Ruby and Rails? I am assuming they are stored in or can be exported to some kind of plain text file... Sadly I am not yet able to make the leap from Linux (and Windows) to a Mac and I am using Slickedit, which has *zero* built in support for Ruby/Rails. I can add macros and code templates so I thought it might be
2005 Dec 18
3
automatically generate migration from db/SQL?
Hi, I''d like to use migrations to build my initial database. Is there a gem or plugin that will generate the migration code for initial db if I point it at a live database or sql file? If yes, then can you automatically generate the incremental migrations as well? Thanks, Jason
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
I''m new to this list, I''m a student in History, Computerscience and a bit of Philosophy from the Netherlands... I have started using rails a few weeks ago, I did read the Agile Webdevelopment with Rails book, and I generally started to love Rails for it''s sheer beauty and intelligent structure... However I came across something that puzzles me quite a bit. It''s
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all, I have a problem with an observer. I have a simple observer... class ActivityObserver < ActiveRecord::Observer observe Customer def after_create(model) bind_params(model) @al.action = "create" @al.save logger "#{model.id} : created" end private def bind_params(model) @al = ActivityLog.new @al.user_id = User.current.id
2006 Feb 02
1
Accessing external library
Hi all, I have been trying to design a Web front end for common unix sysadmin tasks (similar to http://www.webmin.com) Does any one here have any recommendation as to how I can parse unix configuration file from Rails controller? Not trying to reinvent the wheel but just want to learn more about Rails. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 06
4
rails internals?
Is there a list for discussing Rails internals or is that kind of one of those jealously guarded secret things? Also, I seem to be being a bit of a prat today, but if you read this closely: http://www.rubyonrails.org/images/headlines/community.gif Bit of a grammatical error there. (Sorry!) Giles
2006 Jun 22
1
Ruby & Rules Engines
Hi, is anyone aware of a planned or available rules engine which works with Ruby? Something like Drools & Java (forward chaining). Thanks for all your help -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
11
coolest startup?
OK, general question for the community -- what''s the coolest startup using Rails? I don''t think "37 Signals" is a fair answer. I''m curious as to what kind of other developments are happening. Are there a lot of startups using Rails in the first place? Or do most of you who are lucky enough to do Rails for a living (I''m coding Java, bleah) work in large
2006 Mar 03
68
Agile Web Development with Rails 1.1
Dave, on another topic, might I recommend that you and DHH publish an updated version of the Agile guide right away when 1.1 comes out? You could reuse much of your material and it would do a lot of good to help make sure there is still a good centralized source of reference for Rails. Without that book, there really is not a good one-stop source of information for people to learn how to use
2006 Mar 03
7
Workflow + Rails
Is there any project or solution for an easy integration of a WFE / WfMS into rails? I''m quite new to this topic, but I probably need a small subset of workflow patterns (or whatever the correct term is) only. Any pointers are welcome. -- Posted via http://www.ruby-forum.com/.
2007 Jul 07
4
Setting a callback whose action depends on the previous state of the object
I''ve been reading about ActiveRecord::Callbacks and they''re really cool. But I have a complex need I''m not sure they answer. Let''s say we have a User model. User has a #status attribute, which can be either "active", "closed" or "blocked". I want to set a callback to perform an action if an "active" User has been
2006 Feb 19
16
Open source rails e-commerce engine?
I''m pinging the list to see if anyone is working on an open-source e-commerce engine based on Rails yet - something like OSCommerice I guess. Anyone? Is there interest out there for such a thing? I have such a product which has been extracted from real world code. It currently runs 3 production rails sites in various shapes and forms, implemented as a rails engine. Basic feature list: -
2006 Feb 08
8
Riding the Rails to acquisition
Guys, I think many of us on this list would consider ourselves entrepreneurs. I''m willing to bet at least 40% of you are working on ideas for startups...hoping that you just might have the next Flickr, Oddpost, del.icio.us, etc. Me too, for what it''s worth. Rails is good for this, in that it enables you to move quickly (after the learning curve) and it''s