From saji at apcc21.net Mon Jun 11 23:29:31 2007 From: saji at apcc21.net (Saji Njarackalazhikam Hameed) Date: Tue, 12 Jun 2007 12:29:31 +0900 Subject: [Informl-talk] Deleting a page Message-ID: <20070612032931.GE8360@apcc21.net> Hi, I just started using Informl for a collaborative document creation effort. The Help pages says that we can delete pages, but I cannot find any instructions on how to do this. Any help would be appreciated. I am using the latest stable release of Informl from the rubyforge site. thanks, saji -- Saji N. Hameed APEC Climate Center +82 51 668 7470 National Pension Corporation Busan Building 12F Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji at apcc21.net KOREA From david+informl-talk at folklogic.com Tue Jun 12 06:00:43 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Tue, 12 Jun 2007 12:00:43 +0200 Subject: [Informl-talk] Deleting a page In-Reply-To: <20070612032931.GE8360@apcc21.net> References: <20070612032931.GE8360@apcc21.net> Message-ID: Hi, Saji, We'd be happy to hear more details about how you are using Informl. We have lots of ideas about things we could do next, and your input would be valuable. As for your question, page deletion is possible, but a bit hidden at the moment. If you navigate to the URL http://your.server.com/pages you will be given the opportunity to delete pages. However, this can be dangerous -- keep in mind that this will permanently delete the page and any associated form data and metadata. Any links and references to the page will be broken. In the future we plan to merely hide deleted pages (and provide an undelete mechanism). Until then, please be careful! Another related issue: right now there is no sensible way to rename a page. Implementing this won't be so easy, I'm afraid, but we're aware that not being able to is annoying. --david On 6/12/07, Saji Njarackalazhikam Hameed wrote: > Hi, > > I just started using Informl for a collaborative document creation > effort. The Help pages says that we can delete pages, but I cannot > find any instructions on how to do this. Any help would be > appreciated. > > I am using the latest stable release of Informl from the > rubyforge site. > > thanks, > saji > > -- > Saji N. Hameed > > APEC Climate Center +82 51 668 7470 > National Pension Corporation Busan Building 12F > Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji at apcc21.net > KOREA > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk > From saji at apcc21.net Tue Jun 12 09:54:10 2007 From: saji at apcc21.net (Saji Hameed) Date: Tue, 12 Jun 2007 22:54:10 +0900 Subject: [Informl-talk] Format error when including pages Message-ID: Hi, The following discrepancy was noted when including pages from a child node into the parent node. For a demo see http://210.98.49.34:3010 If you check this page and go to http://210.98.49.34:3010/apcc/pages/6;source you can see that the user implemented a list using markdown. This produces correct formatting in the users page. http://210.98.49.34:3010/apcc/pages/Dr+Tam However when this page is included in the parent page http://210.98.49.34:3010/apcc the formatting is lost. This does not happen if we use XHTML tags. I noticed it in other cases too. see http://210.98.49.34:3010/apcc/pages/Saji A h1 header was implemented using markdown and below that preformatted text was included. But when the page is included in the parent. the formatting of the preformatted text is lost. any ideas on how to correctly do this would be much appreciated. saji From saji at apcc21.net Tue Jun 12 09:34:14 2007 From: saji at apcc21.net (Saji Hameed) Date: Tue, 12 Jun 2007 22:34:14 +0900 Subject: [Informl-talk] Deleting a page In-Reply-To: References: <20070612032931.GE8360@apcc21.net> Message-ID: <97A6E59C-88C6-40F4-9AFA-25E2D0312843@apcc21.net> Hi David, Thanks for the quick and detailed response. About page deletion I found it out by chance and was able to delete pages. I understand that it is better to hide this option for the time being, especially since there is no mechanism to restrict access to the pages for the time being. About intended usage: We are a small seasonal forecasting center located in S. Korea, with a staff of about 10 scientists including postdocs. I joined here last August after stints in Japan and Hawaii. In my endeavour to re- organize our working environment, I have been searching for a web based framework that will allow collaborative generation of documents - internal manuals, annual reports etc. I have been searching for a while and I tried out several - Instiki, Wagn (wagn.org), Pandora (pandora.rubyveil.com), Hieraki and so on. I found Informl to be the most attractive solution, very intuitive to use.. Very charming. I installed it last night and today opened it to our staff to try out. You can see it being tested at http://210.98.49.34:3010 page deletion: * Undelete option sounds good! * renaming : would be nice * the user may however really wish to delete pages and may be appropriate to allow this to happen I have no expertise in RoR etc, but have been using the Radiant CMS (http://radiantcms.org). It allows pages to be renamed or deleted and with a mechanism of slugs also allows pages to be placed in any order for a project (say a book). Anyway I must say that I am very happy using Informl and would be happy to provide feedbacks on it from time to time. saji On Jun 12, 2007, at 7:00 PM, David Anderson wrote: > Hi, Saji, > > We'd be happy to hear more details about how you are using Informl. We > have lots of ideas about things we could do next, and your input would > be valuable. > > As for your question, page deletion is possible, but a bit hidden at > the moment. If you navigate to the URL > > http://your.server.com/pages > > you will be given the opportunity to delete pages. However, this can > be dangerous -- keep in mind that this will permanently delete the > page and any associated form data and metadata. Any links and > references to the page will be broken. > > In the future we plan to merely hide deleted pages (and provide an > undelete mechanism). Until then, please be careful! > > Another related issue: right now there is no sensible way to rename a > page. Implementing this won't be so easy, I'm afraid, but we're aware > that not being able to is annoying. > > --david > > On 6/12/07, Saji Njarackalazhikam Hameed wrote: >> Hi, >> >> I just started using Informl for a collaborative document creation >> effort. The Help pages says that we can delete pages, but I cannot >> find any instructions on how to do this. Any help would be >> appreciated. >> >> I am using the latest stable release of Informl from the >> rubyforge site. >> >> thanks, >> saji >> >> -- >> Saji N. Hameed >> >> APEC Climate Center +82 51 668 >> 7470 >> National Pension Corporation Busan Building 12F >> Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 >> saji at apcc21.net >> KOREA >> _______________________________________________ >> Informl-talk mailing list >> Informl-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/informl-talk >> From saji at apcc21.net Tue Jun 12 14:00:31 2007 From: saji at apcc21.net (Saji Hameed) Date: Wed, 13 Jun 2007 03:00:31 +0900 Subject: [Informl-talk] Adding comments Message-ID: Hi, Me again! :) Is it possible for an editor to add comments to a page in Informl. Do I need to download a version from the svn repository for this? thanks, saji From david+informl-talk at folklogic.com Wed Jun 13 08:24:26 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Wed, 13 Jun 2007 14:24:26 +0200 Subject: [Informl-talk] Format error when including pages In-Reply-To: References: Message-ID: We have just pushed out new point releases of both Tartan and Informl, which include a number of bug fixes and improvements -- including a fix to {{include}} that resolves this problem. The latest Tartan is now 0.2.1, which you can get via "sudo gem update tartan". The latest Informl is now 0.4.1, and can be downloaded from rubyforge at http://rubyforge.org/projects/informl/. See the announcements, or release notes and changelogs, for more details. --david On 6/12/07, Saji Hameed wrote: > Hi, > > The following discrepancy was noted when including pages from a child > node into the parent node. For a demo see > > http://210.98.49.34:3010 > > If you check this page and go to > > http://210.98.49.34:3010/apcc/pages/6;source > > you can see that the user implemented a list using markdown. This > produces correct formatting in the users page. > > http://210.98.49.34:3010/apcc/pages/Dr+Tam > > However when this page is included in the parent page > > http://210.98.49.34:3010/apcc > > the formatting is lost. This does not happen if we use XHTML tags. I > noticed it in other cases too. see > > http://210.98.49.34:3010/apcc/pages/Saji > > A h1 header was implemented using markdown and below that > preformatted text was included. But when the page is included in the > parent. the formatting of the preformatted text is lost. > > any ideas on how to correctly do this would be much appreciated. > > saji > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk > From david+informl-talk at folklogic.com Wed Jun 13 08:32:40 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Wed, 13 Jun 2007 14:32:40 +0200 Subject: [Informl-talk] [ANN] Informl 0.4.1 released Message-ID: Release 0.4.1 of Informl is ready, and includes both bug fixes and some new features. You should update the Tartan gem in concert with upgrading Informl -- "sudo gem update tartan" should get you Tartan 0.2.1. Also -- you are all invited to check out my new blog that is both (sometimes) about, and built with, Informl -- http://blog.folklogic.net/david New features in Informl 0.4.1: * Smart HTML differences view for comparing versions of pages. * Support for !=, "like", and "not like" in queries. * _System book that contains Informl "pages" corresponding to built-in activerecord models, such as "page". This allows some interesting meta-behavior, such as iterating over the pages in a book to generate a list of links, or a blog. * Page feed, suitable for blogging. * Added check, gem:check, gem:missing, gem:list and gem:install targets to help with installing Informl. * Per-book styling of the pages and versions index views. * Allow extensions to have an explicit closer, as in <> [:name:] <> Bug fixes: * Page include (using the {{pagename}} markup) didn't always parse the included content. * When authentication is turned on, do not require being logged-in in order to create form entries. * Completed support for queries that require joins. * Re-organized the CSS to make positioning easier; fixed the doc stylesheet to work in IE6. * Bug fixes to markdown support (from latest release of Tartan). --David Anderson folklogic From larry at folklogic.com Wed Jun 13 08:53:32 2007 From: larry at folklogic.com (Larry Baltz) Date: Wed, 13 Jun 2007 14:53:32 +0200 Subject: [Informl-talk] Adding comments In-Reply-To: References: Message-ID: <466FE8CC.3020009@folklogic.com> Hi Saji, Saji Hameed wrote: > Hi, > > Me again! :) > > Is it possible for an editor to add comments to a page in Informl. Do > I need to download a version from the svn repository for this? > > thanks, > > saji We've been thinking page based comments would be a good idea, but Informl doesn't currently support them -- at least not explicitly. Of course anyone with edit access to the page can add comments to the end of the page. This might be a pretty workable solution, actually. You just need to come up with a convention of how people format the content. Maybe put in a horizontal rule at the bottom of the page and each comment has the person's name and the date followed by their comment. I was also thinking there may be a way to get comments on pages by including a page with a comments form and summary into other pages where you want comments, but I haven't yet tried to make this work. If we want something more "built in", I've seen a couple of ways of handling a more fixed page based comments feature. In MediaWiki each subject page has a dedicated discussion page which often has a life of it's own. Another way of handling comments would be to add blog style comments to pages that get tacked onto the bottom of the page. Do you have a preference or thoughts on what the best way to handle this? Any chance you would be able to help with creating a page comments feature? There's pretty long list of features we want get into Informl and currently we have but two sets of hands to get the work done. In any case, your comments and questions are very welcome -- keep them coming. Larry From saji at apcc21.net Wed Jun 13 12:41:41 2007 From: saji at apcc21.net (Saji Hameed) Date: Thu, 14 Jun 2007 01:41:41 +0900 Subject: [Informl-talk] Adding comments In-Reply-To: <466FE8CC.3020009@folklogic.com> References: <466FE8CC.3020009@folklogic.com> Message-ID: <647FBB56-42A5-4DB2-B7E8-76F1CF16C410@apcc21.net> Hi Larry, Thanks for the reply on adding comments. I will try out some of the suggestions and see what fits us best. I am afraid I am a ruby newbie and may not be of much help at this point. At a later point when I get more familiar with Ruby, especially Rails I would like to pitch in to your wonderful project. best wishes, saji .... On Jun 13, 2007, at 9:53 PM, Larry Baltz wrote: > Hi Saji, > > Saji Hameed wrote: >> Hi, >> >> Me again! :) >> >> Is it possible for an editor to add comments to a page in Informl. >> Do I need to download a version from the svn repository for this? >> >> thanks, >> >> saji > We've been thinking page based comments would be a good idea, but > Informl doesn't currently support them -- at least not explicitly. > > Of course anyone with edit access to the page can add comments to > the end of the page. This might be a pretty workable solution, > actually. You just need to come up with a convention of how people > format the content. Maybe put in a horizontal rule at the bottom > of the page and each comment has the person's name and the date > followed by their comment. > > I was also thinking there may be a way to get comments on pages by > including a page with a comments form and summary into other pages > where you want comments, but I haven't yet tried to make this work. > > If we want something more "built in", I've seen a couple of ways of > handling a more fixed page based comments feature. In MediaWiki > each subject page has a dedicated discussion page which often has a > life of it's own. Another way of handling comments would be to add > blog style comments to pages that get tacked onto the bottom of the > page. Do you have a preference or thoughts on what the best way to > handle this? > > Any chance you would be able to help with creating a page comments > feature? There's pretty long list of features we want get into > Informl and currently we have but two sets of hands to get the work > done. > > In any case, your comments and questions are very welcome -- keep > them coming. > > > Larry From saji at apcc21.net Wed Jun 13 12:58:48 2007 From: saji at apcc21.net (Saji Hameed) Date: Thu, 14 Jun 2007 01:58:48 +0900 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: References: Message-ID: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> Hi David, I am checking out the new version Informl 0.4.1 and have a few questions: 1. adding stylesheets to a book - how does one do it? Does one just add a new page called _stylesheet? Is that all? 2. _System book : what is this for? o I am curious and enter the Author page http://210.98.49.34:3010/_system/pages/Author and get the following error message. Reproducing it below in case it helps ( as you can see at this point i am not sure what is happening) saji NoMethodError in Pages#show_by_title Showing app/views/pages/show.rhtml where line #16 raised: You have a nil object when you didn't expect it! The error occurred while evaluating nil.created_at Extracted source (around line #16): 13: 14: 19: RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in `_run_rhtml_47app47views47pages47show46rhtml' app/controllers/pages_controller.rb:217:in `do_html' app/controllers/pages_controller.rb:36:in `show' app/controllers/pages_controller.rb:35:in `show' app/controllers/pages_controller.rb:48:in `show_by_title' Request Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} Show session dump On Jun 13, 2007, at 9:32 PM, David Anderson wrote: > Release 0.4.1 of Informl is ready, and includes both bug fixes and > some new features. > > You should update the Tartan gem in concert with upgrading Informl -- > "sudo gem update tartan" should get you Tartan 0.2.1. > > Also -- you are all invited to check out my new blog that is both > (sometimes) about, and built with, Informl -- > http://blog.folklogic.net/david > > New features in Informl 0.4.1: > > * Smart HTML differences view for comparing versions of pages. > * Support for !=, "like", and "not like" in queries. > * _System book that contains Informl "pages" corresponding to > built-in activerecord models, such as "page". This allows > some interesting meta-behavior, such as iterating over > the pages in a book to generate a list of links, or a blog. > * Page feed, suitable for blogging. > * Added check, gem:check, gem:missing, gem:list and gem:install > targets to help with installing Informl. > * Per-book styling of the pages and versions index views. > * Allow extensions to have an explicit closer, as in > <> > [:name:] > <> > > Bug fixes: > > * Page include (using the {{pagename}} markup) didn't always > parse the included content. > * When authentication is turned on, do not require being > logged-in in order to create form entries. > * Completed support for queries that require joins. > * Re-organized the CSS to make positioning easier; fixed the > doc stylesheet to work in IE6. > * Bug fixes to markdown support (from latest release of Tartan). > > --David Anderson > folklogic > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/informl-talk/attachments/20070614/c64371b0/attachment-0001.html From saji at apcc21.net Wed Jun 13 13:16:46 2007 From: saji at apcc21.net (Saji Hameed) Date: Thu, 14 Jun 2007 02:16:46 +0900 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> Message-ID: <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> Hi David, Yet another problem trying the new version. I created a new database for the new version with mysql -u root -p mysql> create database informl2; mysql>exit On starting the server, I recieve the following error messages: What should I do to correct this? thanks, saji .... /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ connection_adapters/abstract_adapter.rb:128:in `log': Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM books (ActiveRecord::StatementInvalid) from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/connection_adapters/mysql_adapter.rb:243:in `execute' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/connection_adapters/mysql_adapter.rb:348:in `columns' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:763:in `columns' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:776:in `column_names' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:789:in `column_methods_hash' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1262:in `all_attributes_exists?' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active_support/inflector.rb:250:in `all?' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1262:in `each' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1262:in `all?' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1262:in `all_attributes_exists?' from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/base.rb:1196:in `method_missing' from ./script/../config/../app/models/system_book.rb:24:in `create' from ./script/../config/environment.rb:73 from script/server:52:in `require' from script/server:52 On Jun 14, 2007, at 1:58 AM, Saji Hameed wrote: > Hi David, > > I am checking out the new version Informl 0.4.1 and have a few > questions: > > 1. adding stylesheets to a book - how does one do it? > > Does one just add a new page called _stylesheet? Is that all? > > 2. _System book : what is this for? > > o I am curious and enter the Author page > > http://210.98.49.34:3010/_system/pages/Author > > and get the following error message. Reproducing it below in case > it helps ( as you can see at this point i am not sure what is > happening) > > saji > > NoMethodError in Pages#show_by_title > > Showing app/views/pages/show.rhtml where line #16 raised: > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.created_at > > > Extracted source (around line #16): > > 13: > 14: > 19: > > > > > RAILS_ROOT: script/../config/.. > > Application Trace | Framework Trace | Full Trace > #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in > `_run_rhtml_47app47views47pages47show46rhtml' > app/controllers/pages_controller.rb:217:in `do_html' > app/controllers/pages_controller.rb:36:in `show' > app/controllers/pages_controller.rb:35:in `show' > app/controllers/pages_controller.rb:48:in `show_by_title' > Request > > Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} > > Show session dump > > > On Jun 13, 2007, at 9:32 PM, David Anderson wrote: > >> Release 0.4.1 of Informl is ready, and includes both bug fixes and >> some new features. >> >> You should update the Tartan gem in concert with upgrading Informl -- >> "sudo gem update tartan" should get you Tartan 0.2.1. >> >> Also -- you are all invited to check out my new blog that is both >> (sometimes) about, and built with, Informl -- >> http://blog.folklogic.net/david >> >> New features in Informl 0.4.1: >> >> * Smart HTML differences view for comparing versions of pages. >> * Support for !=, "like", and "not like" in queries. >> * _System book that contains Informl "pages" corresponding to >> built-in activerecord models, such as "page". This allows >> some interesting meta-behavior, such as iterating over >> the pages in a book to generate a list of links, or a blog. >> * Page feed, suitable for blogging. >> * Added check, gem:check, gem:missing, gem:list and gem:install >> targets to help with installing Informl. >> * Per-book styling of the pages and versions index views. >> * Allow extensions to have an explicit closer, as in >> <> >> [:name:] >> <> >> >> Bug fixes: >> >> * Page include (using the {{pagename}} markup) didn't always >> parse the included content. >> * When authentication is turned on, do not require being >> logged-in in order to create form entries. >> * Completed support for queries that require joins. >> * Re-organized the CSS to make positioning easier; fixed the >> doc stylesheet to work in IE6. >> * Bug fixes to markdown support (from latest release of Tartan). >> >> --David Anderson >> folklogic >> _______________________________________________ >> Informl-talk mailing list >> Informl-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/informl-talk > > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/informl-talk/attachments/20070614/e87c5edc/attachment-0001.html From saji at apcc21.net Wed Jun 13 14:20:01 2007 From: saji at apcc21.net (Saji Hameed) Date: Thu, 14 Jun 2007 03:20:01 +0900 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> Message-ID: <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> Hi David, I traced the error messages to the db/development_structure.sql. It is likely that there were some errors in the syntax. I am attaching a version of that file that works with MySql 5.0 ? The tables are now created in MySQL without a problem. Now when I run the server I ran into a new error with MySql. It apparently looks for a table called formfields that does not exist. Since I do not know the structure of formfields I cannot add this to the database. Hope someone can help. thanks, saji /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ connection_adapters/abstract_adapter.rb:128:in `log': Mysql::Error: Table 'informl2.formfields' doesn't exist: SELECT * FROM formfields WHERE (formfields.page_id = 0) (ActiveRecord::StatementInvalid) On Jun 14, 2007, at 2:16 AM, Saji Hameed wrote: > Hi David, > > Yet another problem trying the new version. I created a new > database for the new version with > mysql -u root -p > mysql> create database informl2; > mysql>exit > > On starting the server, I recieve the following error messages: > > What should I do to correct this? > > thanks, > > saji > .... > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ > connection_adapters/abstract_adapter.rb:128:in `log': Mysql::Error: > Table 'informl2.books' doesn't exist: SHOW FIELDS FROM books > (ActiveRecord::StatementInvalid) > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/connection_adapters/mysql_adapter.rb:243:in `execute' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/connection_adapters/mysql_adapter.rb:348:in `columns' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:763:in `columns' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:776:in `column_names' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:789:in `column_methods_hash' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1262:in `all_attributes_exists?' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/inflector.rb:250:in `all?' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1262:in `each' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1262:in `all?' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1262:in `all_attributes_exists?' > from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1196:in `method_missing' > from ./script/../config/../app/models/system_book.rb:24:in > `create' > from ./script/../config/environment.rb:73 > from script/server:52:in `require' > from script/server:52 > > On Jun 14, 2007, at 1:58 AM, Saji Hameed wrote: > >> Hi David, >> >> I am checking out the new version Informl 0.4.1 and have a few >> questions: >> >> 1. adding stylesheets to a book - how does one do it? >> >> Does one just add a new page called _stylesheet? Is that all? >> >> 2. _System book : what is this for? >> >> o I am curious and enter the Author page >> >> http://210.98.49.34:3010/_system/pages/Author >> >> and get the following error message. Reproducing it below in case >> it helps ( as you can see at this point i am not sure what is >> happening) >> >> saji >> >> NoMethodError in Pages#show_by_title >> >> Showing app/views/pages/show.rhtml where line #16 raised: >> >> You have a nil object when you didn't expect it! >> The error occurred while evaluating nil.created_at >> >> >> Extracted source (around line #16): >> >> 13: >> 14: >> 19: >> >> >> >> >> RAILS_ROOT: script/../config/.. >> >> Application Trace | Framework Trace | Full Trace >> #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in >> `_run_rhtml_47app47views47pages47show46rhtml' >> app/controllers/pages_controller.rb:217:in `do_html' >> app/controllers/pages_controller.rb:36:in `show' >> app/controllers/pages_controller.rb:35:in `show' >> app/controllers/pages_controller.rb:48:in `show_by_title' >> Request >> >> Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} >> >> Show session dump >> >> >> On Jun 13, 2007, at 9:32 PM, David Anderson wrote: >> >>> Release 0.4.1 of Informl is ready, and includes both bug fixes and >>> some new features. >>> >>> You should update the Tartan gem in concert with upgrading >>> Informl -- >>> "sudo gem update tartan" should get you Tartan 0.2.1. >>> >>> Also -- you are all invited to check out my new blog that is both >>> (sometimes) about, and built with, Informl -- >>> http://blog.folklogic.net/david >>> >>> New features in Informl 0.4.1: >>> >>> * Smart HTML differences view for comparing versions of pages. >>> * Support for !=, "like", and "not like" in queries. >>> * _System book that contains Informl "pages" corresponding to >>> built-in activerecord models, such as "page". This allows >>> some interesting meta-behavior, such as iterating over >>> the pages in a book to generate a list of links, or a blog. >>> * Page feed, suitable for blogging. >>> * Added check, gem:check, gem:missing, gem:list and gem:install >>> targets to help with installing Informl. >>> * Per-book styling of the pages and versions index views. >>> * Allow extensions to have an explicit closer, as in >>> <> >>> [:name:] >>> <> >>> >>> Bug fixes: >>> >>> * Page include (using the {{pagename}} markup) didn't always >>> parse the included content. >>> * When authentication is turned on, do not require being >>> logged-in in order to create form entries. >>> * Completed support for queries that require joins. >>> * Re-organized the CSS to make positioning easier; fixed the >>> doc stylesheet to work in IE6. >>> * Bug fixes to markdown support (from latest release of Tartan). >>> >>> --David Anderson >>> folklogic >>> _______________________________________________ >>> Informl-talk mailing list >>> Informl-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/informl-talk >> >> _______________________________________________ >> Informl-talk mailing list >> Informl-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/informl-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/informl-talk/attachments/20070614/182c7c01/attachment-0002.html -------------- next part -------------- A non-text attachment was scrubbed... Name: development_structure.sql Type: application/octet-stream Size: 1707 bytes Desc: not available Url : http://rubyforge.org/pipermail/informl-talk/attachments/20070614/182c7c01/attachment-0001.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/informl-talk/attachments/20070614/182c7c01/attachment-0003.html From david+informl-talk at folklogic.com Wed Jun 13 14:57:55 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Wed, 13 Jun 2007 20:57:55 +0200 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> Message-ID: Saji, There are three basic steps to setting up a mysql database for informl (or really for any Rails application): 1. Create the database itself, the user, and grant permissions to that user. 2. Setup the file config/database.yml to match the setup done in step 1. 3. Execute "rake db:migrate" in the rails project -- this will create all of the necessary tables, including formfields. Given the error msg you are getting, I'm guessing you just need to do the rake db:migrate. Let me know how it goes. --david On 6/13/07, Saji Hameed wrote: > Hi David, > > I traced the error messages to the db/development_structure.sql. It is > likely that there were some errors in the syntax. I am attaching a version > of that file that works with MySql 5.0 > > > > The tables are now created in MySQL without a problem. Now when I run the > server I ran into a new error with MySql. It apparently looks for a table > called formfields that does not exist. > > Since I do not know the structure of formfields I cannot add this to the > database. Hope someone can help. > > thanks, > saji > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > `log': Mysql::Error: Table 'informl2.formfields' doesn't exist: SELECT * > FROM formfields WHERE (formfields.page_id = 0) > (ActiveRecord::StatementInvalid) > > > On Jun 14, 2007, at 2:16 AM, Saji Hameed wrote: > Hi David, > > Yet another problem trying the new version. I created a new database for the > new version with > mysql -u root -p > mysql> create database informl2; > mysql>exit > > On starting the server, I recieve the following error messages: > > What should I do to correct this? > > thanks, > > saji > .... > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > `log': Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM > books (ActiveRecord::StatementInvalid) > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in > `execute' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in > `columns' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in > `columns' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in > `column_names' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in > `column_methods_hash' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > `all_attributes_exists?' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in > `all?' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > `each' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > `all?' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > `all_attributes_exists?' > from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in > `method_missing' > from > ./script/../config/../app/models/system_book.rb:24:in > `create' > from ./script/../config/environment.rb:73 > from script/server:52:in `require' > from script/server:52 > > > On Jun 14, 2007, at 1:58 AM, Saji Hameed wrote: > Hi David, > > I am checking out the new version Informl 0.4.1 and have a few questions: > > 1. adding stylesheets to a book - how does one do it? > > Does one just add a new page called _stylesheet? Is that all? > > 2. _System book : what is this for? > > o I am curious and enter the Author page > > http://210.98.49.34:3010/_system/pages/Author > > and get the following error message. Reproducing it below in case it helps ( > as you can see at this point i am not sure what is happening) > > saji > > > > NoMethodError in Pages#show_by_title > > Showing app/views/pages/show.rhtml where line #16 raised: > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.created_at > > > > > Extracted source (around line #16): > 13: > 14: > 19: > > > > > > > > RAILS_ROOT: script/../config/.. > Application Trace | Framework Trace | Full Trace > #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in > `_run_rhtml_47app47views47pages47show46rhtml' > app/controllers/pages_controller.rb:217:in `do_html' > app/controllers/pages_controller.rb:36:in `show' > app/controllers/pages_controller.rb:35:in `show' > app/controllers/pages_controller.rb:48:in `show_by_title' > > Request > > Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} > > Show session dump > > > On Jun 13, 2007, at 9:32 PM, David Anderson wrote: > > Release 0.4.1 of Informl is ready, and includes both bug fixes and > some new features. > > You should update the Tartan gem in concert with upgrading Informl -- > "sudo gem update tartan" should get you Tartan 0.2.1. > > Also -- you are all invited to check out my new blog that is both > (sometimes) about, and built with, Informl -- > http://blog.folklogic.net/david > > New features in Informl 0.4.1: > > * Smart HTML differences view for comparing versions of pages. > * Support for !=, "like", and "not like" in queries. > * _System book that contains Informl "pages" corresponding to > built-in activerecord models, such as "page". This allows > some interesting meta-behavior, such as iterating over > the pages in a book to generate a list of links, or a blog. > * Page feed, suitable for blogging. > * Added check, gem:check, gem:missing, gem:list and gem:install > targets to help with installing Informl. > * Per-book styling of the pages and versions index views. > * Allow extensions to have an explicit closer, as in > <> > [:name:] > <> > > Bug fixes: > > * Page include (using the {{pagename}} markup) didn't always > parse the included content. > * When authentication is turned on, do not require being > logged-in in order to create form entries. > * Completed support for queries that require joins. > * Re-organized the CSS to make positioning easier; fixed the > doc stylesheet to work in IE6. > * Bug fixes to markdown support (from latest release of Tartan). > > --David Anderson > folklogic > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk > _______________________________________________ > Informl-talk mailing list > Informl-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/informl-talk > > > > From saji at apcc21.net Wed Jun 13 21:00:32 2007 From: saji at apcc21.net (Saji Njarackalazhikam Hameed) Date: Thu, 14 Jun 2007 10:00:32 +0900 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> Message-ID: <20070614010032.GC16827@apcc21.net> David, Thanks. I did what you suggested. At the 3rd step (rake db:migrate) I run into the following error. I had done the same steps (but used a different database) for informl0.4.0 but did not face such problems. Apparently the tables are not getting created properly. thanks, saji ... p.s: I am using mysql 5.0 rake --trace db:migrate (in /home/saji/Informl/Informl0.4.1) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM books /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in `columns' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in `columns' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in `column_names' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in `column_methods_hash' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in `all?' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `each' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all?' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in `method_missing' /home/saji/Informl/Informl0.4.1/config/../app/models/system_book.rb:24:in `create' /home/saji/Informl/Informl0.4.1/config/../config/environment.rb:73 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/misc.rake:3 /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 /usr/bin/rake:16:in `load' /usr/bin/rake:16 * David Anderson [2007-06-13 20:57:55 +0200]: > Saji, > > There are three basic steps to setting up a mysql database for informl > (or really for any Rails application): > > 1. Create the database itself, the user, and grant permissions to that user. > 2. Setup the file config/database.yml to match the setup done in step 1. > 3. Execute "rake db:migrate" in the rails project -- this will create > all of the > necessary tables, including formfields. > > Given the error msg you are getting, I'm guessing you just need to do > the rake db:migrate. Let me know how it goes. > > --david > > On 6/13/07, Saji Hameed wrote: > > Hi David, > > > > I traced the error messages to the db/development_structure.sql. It is > > likely that there were some errors in the syntax. I am attaching a version > > of that file that works with MySql 5.0 > > > > > > > > The tables are now created in MySQL without a problem. Now when I run the > > server I ran into a new error with MySql. It apparently looks for a table > > called formfields that does not exist. > > > > Since I do not know the structure of formfields I cannot add this to the > > database. Hope someone can help. > > > > thanks, > > saji > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > > `log': Mysql::Error: Table 'informl2.formfields' doesn't exist: SELECT * > > FROM formfields WHERE (formfields.page_id = 0) > > (ActiveRecord::StatementInvalid) > > > > > > On Jun 14, 2007, at 2:16 AM, Saji Hameed wrote: > > Hi David, > > > > Yet another problem trying the new version. I created a new database for > > the > > new version with > > mysql -u root -p > > mysql> create database informl2; > > mysql>exit > > > > On starting the server, I recieve the following error messages: > > > > What should I do to correct this? > > > > thanks, > > > > saji > > .... > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > > `log': Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM > > books (ActiveRecord::StatementInvalid) > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in > > `execute' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in > > `columns' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in > > `columns' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in > > `column_names' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in > > `column_methods_hash' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all_attributes_exists?' > > from > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in > > `all?' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `each' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all?' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all_attributes_exists?' > > from > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in > > `method_missing' > > from > > ./script/../config/../app/models/system_book.rb:24:in > > `create' > > from ./script/../config/environment.rb:73 > > from script/server:52:in `require' > > from script/server:52 > > > > > > On Jun 14, 2007, at 1:58 AM, Saji Hameed wrote: > > Hi David, > > > > I am checking out the new version Informl 0.4.1 and have a few questions: > > > > 1. adding stylesheets to a book - how does one do it? > > > > Does one just add a new page called _stylesheet? Is that all? > > > > 2. _System book : what is this for? > > > > o I am curious and enter the Author page > > > > http://210.98.49.34:3010/_system/pages/Author > > > > and get the following error message. Reproducing it below in case it helps > > ( > > as you can see at this point i am not sure what is happening) > > > > saji > > > > > > > > NoMethodError in Pages#show_by_title > > > > Showing app/views/pages/show.rhtml where line #16 raised: > > You have a nil object when you didn't expect it! > > The error occurred while evaluating nil.created_at > > > > > > > > > > Extracted source (around line #16): > > 13: > > 14: > > 19: > > > > > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > Application Trace | Framework Trace | Full Trace > > #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in > > `_run_rhtml_47app47views47pages47show46rhtml' > > app/controllers/pages_controller.rb:217:in `do_html' > > app/controllers/pages_controller.rb:36:in `show' > > app/controllers/pages_controller.rb:35:in `show' > > app/controllers/pages_controller.rb:48:in `show_by_title' > > > > Request > > > > Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} > > > > Show session dump > > > > > > On Jun 13, 2007, at 9:32 PM, David Anderson wrote: > > > > Release 0.4.1 of Informl is ready, and includes both bug fixes and > > some new features. > > > > You should update the Tartan gem in concert with upgrading Informl -- > > "sudo gem update tartan" should get you Tartan 0.2.1. > > > > Also -- you are all invited to check out my new blog that is both > > (sometimes) about, and built with, Informl -- > > http://blog.folklogic.net/david > > > > New features in Informl 0.4.1: > > > > * Smart HTML differences view for comparing versions of pages. > > * Support for !=, "like", and "not like" in queries. > > * _System book that contains Informl "pages" corresponding to > > built-in activerecord models, such as "page". This allows > > some interesting meta-behavior, such as iterating over > > the pages in a book to generate a list of links, or a blog. > > * Page feed, suitable for blogging. > > * Added check, gem:check, gem:missing, gem:list and gem:install > > targets to help with installing Informl. > > * Per-book styling of the pages and versions index views. > > * Allow extensions to have an explicit closer, as in > > <> > > [:name:] > > <> > > > > Bug fixes: > > > > * Page include (using the {{pagename}} markup) didn't always > > parse the included content. > > * When authentication is turned on, do not require being > > logged-in in order to create form entries. > > * Completed support for queries that require joins. > > * Re-organized the CSS to make positioning easier; fixed the > > doc stylesheet to work in IE6. > > * Bug fixes to markdown support (from latest release of Tartan). > > > > --David Anderson > > folklogic > > _______________________________________________ > > Informl-talk mailing list > > Informl-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/informl-talk > > _______________________________________________ > > Informl-talk mailing list > > Informl-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/informl-talk > > > > > > > > -- Saji N. Hameed APEC Climate Center +82 51 668 7470 National Pension Corporation Busan Building 12F Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji at apcc21.net KOREA From david+informl-talk at folklogic.com Thu Jun 14 01:32:47 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Thu, 14 Jun 2007 07:32:47 +0200 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: <20070614010032.GC16827@apcc21.net> References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> <20070614010032.GC16827@apcc21.net> Message-ID: Saji, Thanks for the trace; I see what's wrong. I will put together a new release to fix this ASAP, but if you want to workaround the problem in meantime, here's what you can do: (1) Comment out the last line of config/environment.rb, so that it looks like this # SystemBook.create (2) Do the rake db:migrate (3) Reinstate the last line of config/environment.rb SystemBook.create (4) Run informl --david On 6/14/07, Saji Njarackalazhikam Hameed wrote: > David, > > Thanks. I did what you suggested. At the 3rd step (rake db:migrate) I run > into the following error. I had done the same steps (but used a different > database) for informl0.4.0 but did not face such problems. Apparently > the tables are not getting created properly. > > thanks, > saji > ... > > p.s: I am using mysql 5.0 > > rake --trace db:migrate > (in /home/saji/Informl/Informl0.4.1) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM books > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in `columns' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in `columns' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in `column_names' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in `column_methods_hash' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?' > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in `all?' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `each' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all?' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in `all_attributes_exists?' > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in `method_missing' > /home/saji/Informl/Informl0.4.1/config/../app/models/system_book.rb:24:in `create' > /home/saji/Informl/Informl0.4.1/config/../config/environment.rb:73 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/misc.rake:3 > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 > /usr/bin/rake:16:in `load' > /usr/bin/rake:16 > > > * David Anderson [2007-06-13 20:57:55 +0200]: > > > Saji, > > > > There are three basic steps to setting up a mysql database for informl > > (or really for any Rails application): > > > > 1. Create the database itself, the user, and grant permissions to that user. > > 2. Setup the file config/database.yml to match the setup done in step 1. > > 3. Execute "rake db:migrate" in the rails project -- this will create > > all of the > > necessary tables, including formfields. > > > > Given the error msg you are getting, I'm guessing you just need to do > > the rake db:migrate. Let me know how it goes. > > > > --david > > > > On 6/13/07, Saji Hameed wrote: > > > Hi David, > > > > > > I traced the error messages to the db/development_structure.sql. It is > > > likely that there were some errors in the syntax. I am attaching a version > > > of that file that works with MySql 5.0 > > > > > > > > > > > > The tables are now created in MySQL without a problem. Now when I run the > > > server I ran into a new error with MySql. It apparently looks for a table > > > called formfields that does not exist. > > > > > > Since I do not know the structure of formfields I cannot add this to the > > > database. Hope someone can help. > > > > > > thanks, > > > saji > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > > > `log': Mysql::Error: Table 'informl2.formfields' doesn't exist: SELECT * > > > FROM formfields WHERE (formfields.page_id = 0) > > > (ActiveRecord::StatementInvalid) > > > > > > > > > On Jun 14, 2007, at 2:16 AM, Saji Hameed wrote: > > > Hi David, > > > > > > Yet another problem trying the new version. I created a new database for > > > the > > > new version with > > > mysql -u root -p > > > mysql> create database informl2; > > > mysql>exit > > > > > > On starting the server, I recieve the following error messages: > > > > > > What should I do to correct this? > > > > > > thanks, > > > > > > saji > > > .... > > > > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > > > `log': Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM > > > books (ActiveRecord::StatementInvalid) > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in > > > `execute' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in > > > `columns' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in > > > `columns' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in > > > `column_names' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in > > > `column_methods_hash' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > > `all_attributes_exists?' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in > > > `all?' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > > `each' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > > `all?' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > > `all_attributes_exists?' > > > from > > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in > > > `method_missing' > > > from > > > ./script/../config/../app/models/system_book.rb:24:in > > > `create' > > > from ./script/../config/environment.rb:73 > > > from script/server:52:in `require' > > > from script/server:52 > > > > > > > > > On Jun 14, 2007, at 1:58 AM, Saji Hameed wrote: > > > Hi David, > > > > > > I am checking out the new version Informl 0.4.1 and have a few questions: > > > > > > 1. adding stylesheets to a book - how does one do it? > > > > > > Does one just add a new page called _stylesheet? Is that all? > > > > > > 2. _System book : what is this for? > > > > > > o I am curious and enter the Author page > > > > > > http://210.98.49.34:3010/_system/pages/Author > > > > > > and get the following error message. Reproducing it below in case it helps > > > ( > > > as you can see at this point i am not sure what is happening) > > > > > > saji > > > > > > > > > > > > NoMethodError in Pages#show_by_title > > > > > > Showing app/views/pages/show.rhtml where line #16 raised: > > > You have a nil object when you didn't expect it! > > > The error occurred while evaluating nil.created_at > > > > > > > > > > > > > > > Extracted source (around line #16): > > > 13: > > > 14: > > > 19: > > > > > > > > > > > > > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > Application Trace | Framework Trace | Full Trace > > > #{RAILS_ROOT}/app/views/pages/show.rhtml:16:in > > > `_run_rhtml_47app47views47pages47show46rhtml' > > > app/controllers/pages_controller.rb:217:in `do_html' > > > app/controllers/pages_controller.rb:36:in `show' > > > app/controllers/pages_controller.rb:35:in `show' > > > app/controllers/pages_controller.rb:48:in `show_by_title' > > > > > > Request > > > > > > Parameters: {"page_title"=>"Author", "book_url_name"=>"_system"} > > > > > > Show session dump > > > > > > > > > On Jun 13, 2007, at 9:32 PM, David Anderson wrote: > > > > > > Release 0.4.1 of Informl is ready, and includes both bug fixes and > > > some new features. > > > > > > You should update the Tartan gem in concert with upgrading Informl -- > > > "sudo gem update tartan" should get you Tartan 0.2.1. > > > > > > Also -- you are all invited to check out my new blog that is both > > > (sometimes) about, and built with, Informl -- > > > http://blog.folklogic.net/david > > > > > > New features in Informl 0.4.1: > > > > > > * Smart HTML differences view for comparing versions of pages. > > > * Support for !=, "like", and "not like" in queries. > > > * _System book that contains Informl "pages" corresponding to > > > built-in activerecord models, such as "page". This allows > > > some interesting meta-behavior, such as iterating over > > > the pages in a book to generate a list of links, or a blog. > > > * Page feed, suitable for blogging. > > > * Added check, gem:check, gem:missing, gem:list and gem:install > > > targets to help with installing Informl. > > > * Per-book styling of the pages and versions index views. > > > * Allow extensions to have an explicit closer, as in > > > <> > > > [:name:] > > > <> > > > > > > Bug fixes: > > > > > > * Page include (using the {{pagename}} markup) didn't always > > > parse the included content. > > > * When authentication is turned on, do not require being > > > logged-in in order to create form entries. > > > * Completed support for queries that require joins. > > > * Re-organized the CSS to make positioning easier; fixed the > > > doc stylesheet to work in IE6. > > > * Bug fixes to markdown support (from latest release of Tartan). > > > > > > --David Anderson > > > folklogic > > > _______________________________________________ > > > Informl-talk mailing list > > > Informl-talk at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/informl-talk > > > _______________________________________________ > > > Informl-talk mailing list > > > Informl-talk at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/informl-talk > > > > > > > > > > > > > > -- > Saji N. Hameed > > APEC Climate Center +82 51 668 7470 > National Pension Corporation Busan Building 12F > Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji at apcc21.net > KOREA > From david+informl-talk at folklogic.com Thu Jun 14 02:01:41 2007 From: david+informl-talk at folklogic.com (David Anderson) Date: Thu, 14 Jun 2007 08:01:41 +0200 Subject: [Informl-talk] [ANN] Informl 0.4.2 released Message-ID: This release fixes a bug in release 0.4.1, relating to doing rake db:migrate on an empty database. --david From saji at apcc21.net Thu Jun 14 02:09:40 2007 From: saji at apcc21.net (Saji Njarackalazhikam Hameed) Date: Thu, 14 Jun 2007 15:09:40 +0900 Subject: [Informl-talk] [ANN] Informl 0.4.1 released In-Reply-To: References: <554977F5-D306-4D92-B736-2BFC0143EB6B@apcc21.net> <860C214F-7D17-4A52-B3CF-6127194CE655@apcc21.net> <69D9D207-6103-4D44-BC42-A1106762336D@apcc21.net> <20070614010032.GC16827@apcc21.net> Message-ID: <20070614060940.GE6432@apcc21.net> David, This works fine now and I booted the server. The following problems were encountered. A new book named _system was created by informl Errors are returned if I click on any of ( Book User Pages ) I created a new book. -> book is created fine Now I edit the book and try to save the edits. The following errors were returned: NoMethodError in VersionsController#create undefined method `name' for [["saji ", "190.1.1.24", :false], nil]:Array If you need any further info, please let me know at your convenience. saji .... RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace app/controllers/versions_controller.rb:121:in `create' app/helpers/sqlite_fixup.rb:9:in `soft_transaction' app/controllers/versions_controller.rb:118:in `create' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in `dispatch' script/server:59 app/controllers/versions_controller.rb:121:in `create' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction' app/helpers/sqlite_fixup.rb:9:in `soft_transaction' app/controllers/versions_controller.rb:118:in `create' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in `dispatch' script/server:59 Request Parameters: {"commit"=>"Save", "author_name"=>"saji ", "page_id"=>"6", "base_version_id"=>"5", "version"=>{"body"=>"# Finally a good Book #\r\n"}} Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} * David Anderson [2007-06-14 07:32:47 +0200]: > Saji, > > Thanks for the trace; I see what's wrong. I will put together a new > release to fix this ASAP, but if you want to workaround the problem in > meantime, here's what you can do: > > (1) Comment out the last line of config/environment.rb, so that it > looks like this > > # SystemBook.create > > (2) Do the rake db:migrate > > (3) Reinstate the last line of config/environment.rb > > SystemBook.create > > (4) Run informl > > --david > > On 6/14/07, Saji Njarackalazhikam Hameed wrote: > > David, > > > > Thanks. I did what you suggested. At the 3rd step (rake db:migrate) I run > > into the following error. I had done the same steps (but used a different > > database) for informl0.4.0 but did not face such problems. Apparently > > the tables are not getting created properly. > > > > thanks, > > saji > > ... > > > > p.s: I am using mysql 5.0 > > > > rake --trace db:migrate > > (in /home/saji/Informl/Informl0.4.1) > > ** Invoke db:migrate (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > rake aborted! > > Mysql::Error: Table 'informl2.books' doesn't exist: SHOW FIELDS FROM books > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > > `log' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in > > `execute' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:348:in > > `columns' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:763:in > > `columns' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:776:in > > `column_names' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:789:in > > `column_methods_hash' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all_attributes_exists?' > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in > > `all?' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `each' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all?' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1262:in > > `all_attributes_exists?' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1196:in > > `method_missing' > > /home/saji/Informl/Informl0.4.1/config/../app/models/system_book.rb:24:in > > `create' > > /home/saji/Informl/Informl0.4.1/config/../config/environment.rb:73 > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/tasks/misc.rake:3 > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in > > `invoke_prerequisites' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in > > `invoke_prerequisites' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in > > `standard_exception_handling' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in > > `standard_exception_handling' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 > > /usr/bin/rake:16:in `load' > > /usr/bin/rake:16 > > > >