Re: Online diary/Journal program(OT)



On 5/30/06, Wade Smart <wade@xxxxxxxxxxxxx> wrote:

05302006 1216 GMT-6

Look at Ruby On Rails

Good call. You can quickly and easily create something like this in
RoR. Here's an example that's ugly, but should work:

Create a database for the app to use:
mysqladmin -u root create diary_development

Create the rails app:
rails diary

Configure the app:
cd diary
./script/generate model diary_entry
nano db/migrate/001_create_diary_entries.rb

put the following 2 lines in the create_table section:

t.column :entry_date, :date
t.column :diary_entry, :text

Save and exit

Initialize the database schema:
rake migrate

Create a scaffold for your diary application:
./script/generate scaffold diary_entry

Start the Rails web/app server:
./script/server

point web browser at localhost:3000/diary_entries and start diary'ing!


This should work with the latest RoR. I'm not sure if it'll work with
what's currently packaged in Ubuntu, however. :P

--

-- AL --

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Rails app organization question
    ... I -really- like Rails, though. ... Have one instance of the app and somehow allow it to use different databases depending on the user's login. ... Have multiple instances of the app running on virtual servers, similar to how cPanel sets up accounts for multiple hosts -- each host has its own directory, MySQL database, and so on. ...
    (comp.lang.ruby)
  • Re: Joel Spolsky on languages for web programming
    ... into exclusive features is what drives your business, the productivity ... I have done enough agile work in Java to appreciate on a surface level ... Rails app distribution to customers is hard to achieve well ...
    (comp.lang.ruby)
  • Re: Looking for a new web framework.
    ... I've had problems with code re-use on view-level across rails apps. ... you could look at rails engines to set up a core shared app, ... plug-abble apps - which allows you to basically make one app a plugin ... These will be completely different web sites but for the same ...
    (comp.lang.ruby)
  • Re: What is the complexity of find_by_name ?
    ... would be 2-15 milliseconds per database call... ... Next, SQL must parse and optimize the query, since Rails doesn't make ... normally complete the cache flushing mentioned above. ... Then, to execute the search requires a logsearch through disk pages, ...
    (comp.lang.ruby)
  • Re: Some interesting criticisms of rails [NOT dining philosophers]
    ... trivial to handle all of that in Rails. ... I think that they're talking about a class of applications that do things that are more complex than manipulating data in a database. ... I think getting hung up on the term 'enterprise' is not a good idea -- everyone can name plenty of enterprise applications that primarily manipulate localised data in a database. ...
    (comp.lang.ruby)