Displaying 10 results from an estimated 10 matches for "codesnipers".
2006 Mar 02
7
The no-framework PHP MVC framework
"The no-framework PHP MVC framework"
http://toys.lerdorf.com/index.php?url=archives/38-The-no-framework-PHP-MVC-framework.html
Yuck! What spaghetti code. I can''t ever imagine preferring that to
Rails.
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Feb 25
1
checkbox helper question
...utes(params[:photo])
flash[:notice] = ''Photo was successfully updated.''
redirect_to :action => ''show'', :id => @photo
else
render :action => ''edit''
end
end
ant ideas???
--
http://PhpGirl.blogger.com
http://CodeSnipers.com
2006 May 15
8
set_table_name and self.table_name
I have some legacy tables that I used set_table_name on, I''m attempting
to write a method that will get key value from a sequence table and then
update it and return a value. I''m hoping to put this in the base
ActiveRecord method so I would like to reference the table name with
self.table_name or something...
class Contacts < ActiveRecord::Base
set_table_name
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
...oisatplay.com''
@sent_on = sent_at
@headers = {}
#@body = ''Thank you, the request is being processed''
end
---
That works ok, it just doesn''t seem to be finding the template. What
am I doing wrong??
--
http://PhpGirl.blogger.com
http://CodeSnipers.com
2006 Feb 12
0
One or Multiple Controllers
...the submenu template name in the initialize method, and told
it to use layout "Page" I tweaked the link in the layout/page.rhtml to call
the Product controller. It worked.
Which is the better way or are both ways stupid and you have a better one?
:)
--
http://PhpGirl.blogger.com
http://CodeSnipers.com
2007 Jun 16
1
extending activerecord base with after_initialize
hi,
i am having problems getting after_initialize for activerecord
subclasses. basically, i am trying to use the guid plugin by andy
singleton. i am having problems extending the class to the plugins i
installed, so i figured i will just apply this to all the models in my
project. i trled to add the following to my lib/ folder. my goal is
to extended the activerecord class so that it uses
2009 May 01
1
how to disable auto-increment in primary key.
How can i disable the auto-increment for a primary key data type. The
purpose of using primary_key data type is using different name for
primary key. But we still want to use all the properties of "id"
except for auto increment part.
I had my migration as following
#=============MIGRATION
def self.up
create_table :pk2s , :id=> false do |t|
t.primary_key :uid
2006 Mar 03
13
Listing help
Hi,
I''ve created a Rails application and am having a problem listing by a
particular category in an associated table. I followed the instructions
found at the O''Reilly tutorial
(http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html?page=3) but have
not had success. Can anyone please outline a better set of instructions
than in the "Showing Recipes in a
2006 Mar 28
6
RHTML designer
Hi
I have just started playing with ROR and I think its very good. My only
problem is that I am new to web development and know much abount html. I
was wondering if there is any tool/plugin I could use to design rhtml
pages.
Regards
Sandeep
--
Posted via http://www.ruby-forum.com/.
2006 Mar 03
19
Dreamhost rating?
Hi, I''m looking at getting some hosting to support RoR development. Thus,
how would you rate Dream Host?
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/91b84488/attachment.html