Psyionx,

1.my question is, can i built this system using ROR? i can imagine building
>> it using php. but i really want to learn ROR
>>
>
> Remember that RoR is a framework and not a language. Compare it to
> CodeIgniter, CakePHP, Symphony in the PHP space.
>
> As to your question: yes, RoR can do that. In fact, your whole project
> description is a class example of an MVC based application. If you have
> worked with unit and integration tests before in the course of your
> education, I would recommend using a BDD or TDD approach for your Rails app
> right away.
>

I would not like to join the battle that has just developed here. But, as
far as I know Ruby on Rails is more of a framework than a language. In other
words, the phrase "Ruby on Rails" implies the language "Ruby" is running on
some infrastructure (=framework), in which case it is Rails.

I am very much exited to hear that you would like to build a system using
Ruby on Rails. It is one of the cool frameworks I ever encountered!!

As Peter said, I would recommend you to start using Behavioral Driven
Development (BDD) or Test Driven Development (TDD). It is a cool experience
to learn the ways of coding as a "tender" stage like yours. (Forgive me if
that sounds diminutive). There are good BDD/TDD technologies available for
you. Some of them include Cucumber (BDD), RSpec(TDD) and Shoulda (TDD). Get
familiar with at least one TDD and/or one BDD technology. This is how I got
into RoR. *There's much fun on RoR side of programming, especially when
dealing with TDD!!*


>  2.hmm... i was wondering if i print a receipt, if the item list got so
>> long, my printer will split the page in two, where the header will be print
>> at the first page and no header on the next page. and the length of the page
>> is inconsistent if the item list differs.. how do i overcome this? i can
>> imagine that the company have already have a header  printed on the paper
>> first then set the margin for the printer to avoid printing on the header.
>> but, i don't think this will amaze my lecturer.
>>
>
> Generate a PDF instead. I would recommend PrinceXML, which you can just use
> in demo mode since it's just a school project. PrinceXML allows you to
> generate a PDF from HTML+CSS, including all the cases with headers and
> footers you correctly indicated as problematic with just an HTML print.
>

There are several ways of making this happen. I should admit that, most of
the readily available gem solutions have  disappointed me. There is one that
has done me some justice: the combination of the Prawn gem and the Prawnto
plugin. As Sandy describes, Prawn/Prawnto seamlessly integrates of the Rails
application and and produces nice PDF documents. You may need Ryan Bates's
railscast on how to generate PDFs using Prawn and
Prawnto<http://railscasts.com/episodes/153-pdfs-with-prawn>
.

In one project, I played around with HTML, CSS and JavaScript to produce
nice PDF reports too. For me, it is one of the simple but powerful hack
solutions. There is a blog post you can follow here (Printing HTML Documents
Using Customised CSS and
JavaScript<http://edceekays.blogspot.com/2010/08/printing-html-documents-using.html>
).

3. can anyone send me a link where's the best place to read so that i can
>> learn more about ROR?
>>
> http://guides.rubyonrails.org/
> http://peepcode.com/products/test-first-development
>

I think  http://railscasts.com/episodes/ has nice casts for you.

---
Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |
Malawi

Cell:  +265 999 465 137 | +265 881 234 717

*"Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good.." -- Kevin Scannell*



On 11 August 2010 18:09:44 UTC+2, Marnen Laibow-Koser
<[email protected]>wrote:

> Fernando Perez wrote:
> >> Remember that RoR is a framework and not a language. Compare it to
> >> CodeIgniter, CakePHP, Symphony in the PHP space.
> >
> > No RoR is a thing to build websites, as pure php, symphony, and pure
> > ruby do, so it is fair to compare them.
>
> It's fair to compare Rails and Symfony.  It's fair to compare pure PHP
> and pure Ruby.  That's about it, really.
>
> >
> > RoR is stuff written in Ruby that avoids writing boiler plate.
>
> No, it's much more than that, unless you have a very broad definition of
> "boilerplate".
>
> >
> > Beware 2 months is certainly no enough to get your app going.
>
> Of course it is.  The app is very simple, and the OP should be able to
> get a usable version within 2 months (depending on how long it takes him
> to learn Ruby and Rails, of course).
>
> > In real
> > life, a usable blog takes more than 15 minutes to get built.
>
> Of course.  15 minutes is not 2 months.
>
> >
> > Have fun learning and working with Rails.
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to