Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1020 Bytes

README.textile

File metadata and controls

21 lines (14 loc) · 1020 Bytes

Skik – A Scala Web Framework

Skik is a project to port Ruby on Rails (v2) to Scala. At the moment, it is still in its very early stages. Work is being done mostly on ActiveRecord for now, using the Agile Web Development with Rails book (2nd edition) as a measure for completeness.

As Scala is a different language from Ruby, don’t expect constructs to look exactly the same. Instead, the aim is to…

  • Keep the api/syntax as simple as the original one;
  • Use idiomatic Scala, don’t try to “Rubyfy” Scala;
  • Make possible a purely textual conversion from Rails syntax to Skik.

Examples

val pos = Order.findAll(
    Conditions("name = :name and pay_type = :pay_type",
        Map('name -> "Smith", 'pay_type -> "po")),
    Order("id desc"))

val joe = Person.findFirst(By('first_name -> "Joe", 'last_name -> "Smith"))

joe.updateAttributes('first_name -> "Barney", 'email -> "barney@bedrock.com")

You will find Skik versions of sample code from the Rails book in SkikBook.doc.