With all of this talk of editors - specifically on Windows - I did a brief test of Crimson Editory and AnachroRuby both fall a bit short in my opinion. I use ultraedit and have for a while, but am interested always on improvement. RESULTS: UltraEdit - great interface and a really good project functionality - create a project and add files or directories (recursive if you like) - very easy to create a proj that is your rails app and children. Negatives - no RHTML syntax highlighting. Crimson Editor - Nice clean interface, great syntax highlighting (rhtml from chilton (sp?)) - but the project functionality is weak. You have to add each directory and subdirectory as categories... AnachroRuby - This is an IDE. I must say that having been a Delphi developer for some time in my past, I have come to dislike IDE because of what the assume for you. Seems a little heavy for doing rails applications. Great, easy light font dark background syntax. Costs money at 0.5.6. Will probably be the way to go for a serious team working for a company. Needs to be made rails focused. So, I am going to stick with UltraEdit for the time being. Anyone know of a good rhml syntax page for UE? Ken _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I personally like using FreeRIDE, it has tabbed files (although you can''t rearrange them), pretty good project navigation (although it is more just a FS nav) and the syntax highlighting is pretty good. I also like the folding code which is a big must have. I have used Arachno Ruby IDE which I liked, I might purchase it pretty soon although it is a bit slow to startup but the features were nice. For my Mac I use TextMate (who doesn''t?). I have used Eclipse with the RDT Plugin, I liked most of it but it lacked code folding. SciTE is OK, no project or FS navigation. Here are my requirements other than the obvious like syntax highlighting, breakpoints etc.: Folding code, project browser, tabbed files (can be rearranged). I would imagine writing an IDE or adding support for rails in something like Arachno would be a good idea. I used to use Komodo for Python dev which had some nice tie-ins to Zope and other Python frameworks. Being able to step into breakpointer which is being run from the IDE would be sweet. Since RoR is the largest and getting larger killer app for Ruby the dev team for an IDE would be smart to add support for this. One more thing that I would love which I used to use in VS.net was intellisense. It would be nice to have auto-complete and Rdoc access to the standard lib. I don''t mind looking up the Programming Ruby book for reference but having it right there in my code would be oooh sooo nice. :-) Scott Burton IRC spurton www.similarthings.com <http://www.similarthings.com/> blog.similarthings.com spurton.blogspot.com _____ From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ken Barker Sent: Friday, July 08, 2005 7:17 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] editors - UE rhtml syntax file With all of this talk of editors - specifically on Windows - I did a brief test of Crimson Editory and AnachroRuby both fall a bit short in my opinion. I use ultraedit and have for a while, but am interested always on improvement. RESULTS: UltraEdit - great interface and a really good project functionality - create a project and add files or directories (recursive if you like) - very easy to create a proj that is your rails app and children. Negatives - no RHTML syntax highlighting. Crimson Editor - Nice clean interface, great syntax highlighting (rhtml from chilton (sp?)) - but the project functionality is weak. You have to add each directory and subdirectory as categories... AnachroRuby - This is an IDE. I must say that having been a Delphi developer for some time in my past, I have come to dislike IDE because of what the assume for you. Seems a little heavy for doing rails applications. Great, easy light font dark background syntax. Costs money at 0.5.6. Will probably be the way to go for a serious team working for a company. Needs to be made rails focused. So, I am going to stick with UltraEdit for the time being. Anyone know of a good rhml syntax page for UE? Ken _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Completely agreed on the limitations of Crimson''s project editor, but I haven''t found another syntax highlighter to come even close on a windows box, so I use the directory view (which is ok for me because my projects aren''t buried that deep). I do like Ultraedit''s functionality with the project view, and in all honesty, there isn''t much that I don''t like except it''s lack of syntax recognition for ruby and rhtml. So if anybody does know of some good syntax files for UE, I would appreciate that info being posted to the list. I run UE 10.10 and the ruby highlighting consists of anything with an @ in front of it and a few key words, so I could use syntax files for Ruby and Rails. Thanks for any help in advance, Ben Robison Ken Barker wrote:> With all of this talk of editors - specifically on Windows - I did a > brief test of Crimson Editory and AnachroRuby both fall a bit short in > my opinion. > > I use ultraedit and have for a while, but am interested always on > improvement. > > RESULTS: > > UltraEdit - great interface and a really good project functionality - > create a project and add files or directories (recursive if you like) > - very easy to create a proj that is your rails app and children. > Negatives - no RHTML syntax highlighting. > > Crimson Editor - Nice clean interface, great syntax highlighting > (rhtml from chilton (sp?)) - but the project functionality is weak. > You have to add each directory and subdirectory as categories... > > AnachroRuby - This is an IDE. I must say that having been a Delphi > developer for some time in my past, I have come to dislike IDE because > of what the assume for you. Seems a little heavy for doing rails > applications. Great, easy light font dark background syntax. Costs > money at 0.5.6. Will probably be the way to go for a serious team > working for a company. Needs to be made rails focused. > > So, I am going to stick with UltraEdit for the time being. Anyone > know of a good rhml syntax page for UE? > > Ken > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.12/46 - Release Date: 7/11/2005 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Ben, There is a Ruby wordfile on ultraedit''s website: http://www.ultraedit.com/index.php?name=Content&pa=showpage&pid=40#wordfiles I did not see one for rhtml, but you could probably just add rhtml as a type for one of the html wordfiles until one is available. Let me know if you have any questions. Tom On 7/11/05, Ben Robison <benrobb-tG9VLQz9vMNvVe5bR5WX4wC/G2K4zDHf@public.gmane.org> wrote:> Completely agreed on the limitations of Crimson''s project editor, but I > haven''t found another syntax highlighter to come even close on a windows > box, so I use the directory view (which is ok for me because my projects > aren''t buried that deep). I do like Ultraedit''s functionality with the > project view, and in all honesty, there isn''t much that I don''t like except > it''s lack of syntax recognition for ruby and rhtml. > > So if anybody does know of some good syntax files for UE, I would > appreciate that info being posted to the list. I run UE 10.10 and the ruby > highlighting consists of anything with an @ in front of it and a few key > words, so I could use syntax files for Ruby and Rails. Thanks for any help > in advance, > > Ben Robison > > Ken Barker wrote: > With all of this talk of editors - specifically on Windows - I did a brief > test of Crimson Editory and AnachroRuby both fall a bit short in my opinion. > > I use ultraedit and have for a while, but am interested always on > improvement. > > RESULTS: > > UltraEdit - great interface and a really good project functionality - > create a project and add files or directories (recursive if you like) - very > easy to create a proj that is your rails app and children. Negatives - no > RHTML syntax highlighting. > > Crimson Editor - Nice clean interface, great syntax highlighting (rhtml > from chilton (sp?)) - but the project functionality is weak. You have to > add each directory and subdirectory as categories... > > AnachroRuby - This is an IDE. I must say that having been a Delphi > developer for some time in my past, I have come to dislike IDE because of > what the assume for you. Seems a little heavy for doing rails applications. > Great, easy light font dark background syntax. Costs money at 0.5.6. Will > probably be the way to go for a serious team working for a company. Needs > to be made rails focused. > > So, I am going to stick with UltraEdit for the time being. Anyone know of > a good rhml syntax page for UE? > > Ken > ________________________________ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.323 / Virus Database: 267.8.12/46 - Release Date: 7/11/2005 > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Also, if you are using Ultra Edit v11+ with code folding support, here is a partial list to add to your ruby wordfile definition: /Open Fold Strings = "{" "def" "if" "for" "while" "do" /Close Fold Strings = "}" "end" You can just put it at the bottom of the definition for Ruby. You may need to add more strings to the Opens... and possibly more Close strings... I just hacked a partial list together. Also, for rhtml, you can just search your wordfile for the string ''File Extensions'' and add RHTML to it. On mine, it highlights the HTML nicely and the ruby tags are just one shade of green.. which is not too bad for a quick fix. Tom On 7/11/05, Tom Davies <atomgiant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Ben, > > There is a Ruby wordfile on ultraedit''s website: > > http://www.ultraedit.com/index.php?name=Content&pa=showpage&pid=40#wordfiles > > I did not see one for rhtml, but you could probably just add rhtml as > a type for one of the html wordfiles until one is available. > > Let me know if you have any questions. > > Tom > > On 7/11/05, Ben Robison <benrobb-tG9VLQz9vMNvVe5bR5WX4wC/G2K4zDHf@public.gmane.org> wrote: > > Completely agreed on the limitations of Crimson''s project editor, but I > > haven''t found another syntax highlighter to come even close on a windows > > box, so I use the directory view (which is ok for me because my projects > > aren''t buried that deep). I do like Ultraedit''s functionality with the > > project view, and in all honesty, there isn''t much that I don''t like except > > it''s lack of syntax recognition for ruby and rhtml. > > > > So if anybody does know of some good syntax files for UE, I would > > appreciate that info being posted to the list. I run UE 10.10 and the ruby > > highlighting consists of anything with an @ in front of it and a few key > > words, so I could use syntax files for Ruby and Rails. Thanks for any help > > in advance, > > > > Ben Robison > > > > Ken Barker wrote: > > With all of this talk of editors - specifically on Windows - I did a brief > > test of Crimson Editory and AnachroRuby both fall a bit short in my opinion. > > > > I use ultraedit and have for a while, but am interested always on > > improvement. > > > > RESULTS: > > > > UltraEdit - great interface and a really good project functionality - > > create a project and add files or directories (recursive if you like) - very > > easy to create a proj that is your rails app and children. Negatives - no > > RHTML syntax highlighting. > > > > Crimson Editor - Nice clean interface, great syntax highlighting (rhtml > > from chilton (sp?)) - but the project functionality is weak. You have to > > add each directory and subdirectory as categories... > > > > AnachroRuby - This is an IDE. I must say that having been a Delphi > > developer for some time in my past, I have come to dislike IDE because of > > what the assume for you. Seems a little heavy for doing rails applications. > > Great, easy light font dark background syntax. Costs money at 0.5.6. Will > > probably be the way to go for a serious team working for a company. Needs > > to be made rails focused. > > > > So, I am going to stick with UltraEdit for the time being. Anyone know of > > a good rhml syntax page for UE? > > > > Ken > > ________________________________ > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.323 / Virus Database: 267.8.12/46 - Release Date: 7/11/2005 > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > >
Hey all, I am fighting my way through using Rails with PostgreSQL (how surprised I am that Rails/the community default to mySQL is a whole other email). Are there any comprehensive resources out there on the topic? References, blogs, etc. I''ve done some Googling and looked through the Wiki and haven''t found much. I found several explainations about how to setup the driver and one or two "translations" of tutorial DDLs...I am looking farther down the road. My main question, at the moment, is about the "id" field that Rails expects. Normally in Postgres you would implement this as a SERIAL, but since that isn''t implemented in mySQL none of the examples use it. As a first guess, I''ve setup "id" as a SERIAL then when referencing as a foreign key using the INT4 datatype. Is that right? Is Rails going to handle the SERIAL appropriately? Should I just use an INT4 for both? Thanks, Jeff
On Jul 11, 2005, at 5:32 PM, j3 wrote:> Hey all, > > I am fighting my way through using Rails with PostgreSQL (how > surprised I am that Rails/the community default to mySQL is a whole > other email). > > Are there any comprehensive resources out there on the topic? > References, blogs, etc. I''ve done some Googling and looked through > the Wiki and haven''t found much. I found several explainations > about how to setup the driver and one or two "translations" of > tutorial DDLs...I am looking farther down the road. > > My main question, at the moment, is about the "id" field that Rails > expects. Normally in Postgres you would implement this as a > SERIAL, but since that isn''t implemented in mySQL none of the > examples use it. As a first guess, I''ve setup "id" as a SERIAL > then when referencing as a foreign key using the INT4 datatype. Is > that right? Is Rails going to handle the SERIAL appropriately? > Should I just use an INT4 for both? > > Thanks, > Jeff > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >I have been using postgres with rails and rails has no problem with using SERIAL for the id field and using INT4 for the foreign keys. Kim -- Kim Shrier - principal, Shrier and Deihl - mailto:kim-7lDDVWa6PKfQT0dZR+AlfA@public.gmane.org Remote Unix Network Admin, Security, Internet Software Development Tinker Internet Services - Superior FreeBSD-based Web Hosting http://www.tinker.com/
On Tuesday 12 July 2005 01:32, j3 wrote:> My main question, at the moment, is about the "id" field that Rails > expects. Normally in Postgres you would implement this as a SERIAL, > but since that isn''t implemented in mySQL none of the examples use > it. As a first guess, I''ve setup "id" as a SERIAL then when > referencing as a foreign key using the INT4 datatype. Is that right? > Is Rails going to handle the SERIAL appropriately? Should I just > use an INT4 for both?SERIAL and INTEGER (== INT4?) work fine. Michael -- Michael Schuerig You can twist perceptions mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org Reality won''t budge http://www.schuerig.de/michael/ --Rush, Show Don''t Tell
On Tuesday 12 July 2005 00:32, j3 wrote:> Hey all, > > I am fighting my way through using Rails with PostgreSQL (how > surprised I am that Rails/the community default to mySQL is a whole > other email).I don''t know what you mean here, unless you mean the database.yml containing ''mysql''. I think you are misinterpreting the significance of this.> Are there any comprehensive resources out there on the topic? > References, blogs, etc. I''ve done some Googling and looked through > the Wiki and haven''t found much. I found several explainations about > how to setup the driver and one or two "translations" of tutorial > DDLs...I am looking farther down the road.Install rails, postgresql, ruby-pgsql. I could tell you how to do it for FreeBSD, but it will vary from OS to OS.> My main question, at the moment, is about the "id" field that Rails > expects. Normally in Postgres you would implement this as a SERIAL, > but since that isn''t implemented in mySQL none of the examples use > it. As a first guess, I''ve setup "id" as a SERIAL then when > referencing as a foreign key using the INT4 datatype. Is that right? > Is Rails going to handle the SERIAL appropriately? Should I just > use an INT4 for both?I used SERIAL. Didn''t seem a problem.> Thanks, > Jeff > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/railsHTH, -- Dominic Marks
> My main question, at the moment, is about the "id" field that Rails > expects. Normally in Postgres you would implement this as a SERIAL, > but since that isn''t implemented in mySQL none of the examples use > it. As a first guess, I''ve setup "id" as a SERIAL then when > referencing as a foreign key using the INT4 datatype. Is that right? > Is Rails going to handle the SERIAL appropriately? Should I just > use an INT4 for both?I use e.g. create table fred ( id SERIAL PRIMARY KEY, ... ); and it works just fine. For foreign keys e.g. create table bob ( id SERIAL PRIMARY KEY, fred_id INTEGER REFERENCES fred(id) ON UPDATE CASCADE ON DELETE CASCADE, ... ); and that works fine too. Stick with Postgres on Rails; it really works very well once you''re up and going. The only real issue I''ve found is that most documentation assumes MySQL, but there''s enough people using Postgres with Rails that most of the problems you''re likely to hit have already been found and solved by someone else. The mailing list is your friend... Regards Dave M. On 7/12/05, Dominic Marks <dom-oCiW/wK895g3fM+T6T0RSip2UmYkHbXO@public.gmane.org> wrote:> On Tuesday 12 July 2005 00:32, j3 wrote: > > Hey all, > > > > I am fighting my way through using Rails with PostgreSQL (how > > surprised I am that Rails/the community default to mySQL is a whole > > other email). > > I don''t know what you mean here, unless you mean the database.yml > containing ''mysql''. I think you are misinterpreting the significance > of this. > > > Are there any comprehensive resources out there on the topic? > > References, blogs, etc. I''ve done some Googling and looked through > > the Wiki and haven''t found much. I found several explainations about > > how to setup the driver and one or two "translations" of tutorial > > DDLs...I am looking farther down the road. > > Install rails, postgresql, ruby-pgsql. I could tell you how to do > it for FreeBSD, but it will vary from OS to OS. > > > My main question, at the moment, is about the "id" field that Rails > > expects. Normally in Postgres you would implement this as a SERIAL, > > but since that isn''t implemented in mySQL none of the examples use > > it. As a first guess, I''ve setup "id" as a SERIAL then when > > referencing as a foreign key using the INT4 datatype. Is that right? > > Is Rails going to handle the SERIAL appropriately? Should I just > > use an INT4 for both? > > I used SERIAL. Didn''t seem a problem. > > > Thanks, > > Jeff > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > HTH, > -- > Dominic Marks > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Active Record has first class postgres support. All the test cases of Active Record run flawlessly on it and its even supported by the brand new migrations. On 7/11/05, j3 <j3-RDMnIG7udb0dnm+yROfE0A@public.gmane.org> wrote:> Hey all, > > I am fighting my way through using Rails with PostgreSQL (how surprised > I am that Rails/the community default to mySQL is a whole other email). >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog
On Mon, 2005-07-11 at 16:32 -0700, j3 wrote:> Is Rails going to > handle the SERIAL appropriately? Should I just use an INT4 for both? >There is really no such thing as a SERIAL datatype[1]. SERIAL is just a pseudo-type used to denoted a column as an "auto-increment" column and tells Postgresql to create a generator and set the default value for the column. But, yes ActiveRecord handles Postgresql SERIAL columns just fine - in fact it''s the way it assumes all autoincrement columns are setup (for generator name purposes). John W Higgins wishdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [1] http://www.postgresql.org/docs/8.0/interactive/datatype.html#DATATYPE-SERIAL
I downloaded a trial of Arachno Ruby IDE after some of the positive comments, but there''s no documentation at this time. Has anyone configured the new version''s built-in Apache to use a Rails project? I ran into problems quickly and noticed the integrated Apache has no mod_rewrite.so. -Bill On 7/10/05, Scott Burton <scott-TL7OFFGR8A2aMJb+Lgu22Q@public.gmane.org> wrote:> > I personally like using FreeRIDE, it has tabbed files (although you can''t > rearrange them), pretty good project navigation (although it is more just a > FS nav) and the syntax highlighting is pretty good. I also like the folding > code which is a big must have. I have used Arachno Ruby IDE which I liked, I > might purchase it pretty soon although it is a bit slow to startup but the > features were nice. For my Mac I use TextMate (who doesn''t?). I have used > Eclipse with the RDT Plugin, I liked most of it but it lacked code folding. > SciTE is OK, no project or FS navigation. > > Here are my requirements other than the obvious like syntax highlighting, > breakpoints etc.: Folding code, project browser, tabbed files (can be > rearranged). > > > > I would imagine writing an IDE or adding support for rails in something like > Arachno would be a good idea. I used to use Komodo for Python dev which had > some nice tie-ins to Zope and other Python frameworks. Being able to step > into breakpointer which is being run from the IDE would be sweet. Since RoR > is the largest and getting larger killer app for Ruby the dev team for an > IDE would be smart to add support for this. One more thing that I would love > which I used to use in VS.net was intellisense. It would be nice to have > auto-complete and Rdoc access to the standard lib. I don''t mind looking up > the Programming Ruby book for reference but having it right there in my code > would be oooh sooo nice. J
All I did to use Arachno with Rails was to rename the webrick ruby script in the rail scripts folder to server.rb from just server and then I started it in the Arachno debugger. Worked great. On 7/18/05, Bill Katz <billkatz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I downloaded a trial of Arachno Ruby IDE after some of the positive > comments, but there''s no documentation at this time. Has anyone > configured the new version''s built-in Apache to use a Rails project? I > ran into problems quickly and noticed the integrated Apache has no > mod_rewrite.so. > -Bill