There's been a lot of debate lately surrounding Rails suitability for the server stack underlying modern HTML5/JS applications. Having used Rails for some four years for this purpose, and worked with a number of Rails core members, this is a problem I think the Ruby community has solved wonderfully, but yet some are confused as to what solutions are available or the way forward.
Rails 3 provided enormous advances in terms of letting you specialize what Rails provides to the problem at hand. However, to a certain extent this goes against the Rails mantra of "convention over configuration". While Rails 3 provides ample opportunities for configuration, as Rubyists, we shouldn't have to configure anything, right?
I'm a huge believer in both Rails' suitability as a backend for modern client-heavy HTML5/JS applications, and someone experienced in building such applications. Rails is, was, and continues to be a game-changer for modern web development. ActionController::Metal provides the bare minimum needed to build apps which don't need the complete set of HTML-generating abstractions provided by ActionView, but need more tools than a more minimalistic framework like Sinatra makes available. Between Sinatra and Rails lies an unaddressed middle ground, one where, in theory, you should be able to build an ActionController::Metal stack appropriate to your needs, but maybe this is too daunting a task.
For you, the JSON API builder, who wants more than Sinatra but less than Rails... I have what you desire. Introducing Lightrail:
What is Lightrail? Lightrail is Strobe's ActionController::Metal stack for HTML5 applications, originally used to provide the backend APIs for Strobecorp.com and its frontend HTML5/JS application authored with SproutCore (which has been superseded by Ember.js).
Lightrail contains everything you need to build lightweight applications on the Rails stack which serve only JSON, and furthermore, contains an innovative system for building JSON APIs around your objects. Rather than adding a fat #to_json method on your models, or using a template to construct your JSON, Lightrail's allows you to map the JSON serializations of your objects to specific wrappers that know how to serialize specific objects. Like using #to_json, this makes it easy to recursively serialize nested objects to JSON without having to use ActionView voodoo like invoking other renderers. Besides that, it still separates the concerns of what your domain objects are and how they serialize to JSON. If you've tried to build JSON APIs in Rails and found the existing mechanisms for JSON serialization lacking, please try out Lightrail::Wrapper and let me know what you think.
Lightrail is something of an experiment. I didn't write it, but it's software I believe in so much I'd like to support it and see if people are interested in it. Rather than competing with Rails, Lightrail takes the latest, greatest Rails stack and reconfigures it for lightweight applications that provide a JSON API exclusively. Lightrails builds upon all of the modularity that Rails 3 brings to the table, and simply and easily delivers a lightweight stack which is still suitable for complex applications.
Please let me know if Lightrail seems like a good idea to you and if you'd like to help support it. As I have my hands in an awful lot of other open source projects, Lightrail isn't the sort of thing I can support full time. However, if you have some time to spare and ideas to contribute, I am definitely looking for people to help maintain and improve this project.
If you're interested in using Lightrail or helping out with its development, sign up for the mailing list. Just send any message to lightrail@librelist.com to join.
Subscribe to:
Post Comments (Atom)
40 comments:
looks great!
I tried using it by adding the gem to my gemfile and extending one of my controllers with Lightrail::ActionController::Metal, but I got an error (uninitialized constant Lightrail). What am I missing?
You need to require 'lightrail/railtie'
I'll be adding an application generator to it this weekend so you can just do "lightrail new myapp" to get a fully configured application just like you would with rails.
Wow, very comprehensive review. I'm thinking about learning HTML5. I'm seeing more and more job/freelance listings asking for html5 media playerknowledge and so along with reading some of the online references you listed, I'm going to have to pick up the book as well. Really appreciated the chapter breakdowns.
This page provides good information about HTML5 and JS apps. Here viewers can learn many techniques of professional html5 mobile game development. Thanks
Informative post. Keep sharing such a useful post.
html5 training in chennai
The article you have shared here is very awesome. I really like and appreciate your work. The points you have mentioned in this article are useful.
Back Office Support Solutions
شركة تنظيف بالمزاحمية
شركة تنظيف فلل بالمزاحمية
شركة مكافحة حشرات بالمزاحمية
شركة مكافحة النمل الابيض بالمزاحميه
شركة رش مبيدات بالمزاحميه
شركة عزل فوم بالمزاحية
Surveillancekart | CCTV System
Pestveda | Pest Control
Termite control
cctv installation services
best home security camera system
شركة تركيب اثاث ايكيا بالرياض
شركة تركيب ستائر بالرياض
شركة تنظيف مكيفات بالرياض
شركة تركيب غرف نوم بالرياض
شركة تركيب باركية بالرياض
cctv camera dealers in delhi
cp plus cctv camera online
hikvision camera online
cctv camera installation services in delhi
cctv camera installation services in gurugram
cctv camera installation services in gurgaon
نقل عفش بالرياض
نقل عفش بجدة
نقل عفش بالطائف
نقل عفش بالمدينة المنورة
نقل عفش بالدمام
نقل عفش بمكة
شركة تنظيف خزانات بخميس مشيط
شركة تنظيف بيوت بخميس مشيط
شركة تنظيف بخميس مشيط
شركة تنظيف شقق بخميس مشيط
شركة تنظيف فلل بخميس مشيط
شركة تنظيف منازل بخميس مشيط
شركة مكافحة حشرات بخميس مشيط
avriq Desktop/Laptop Repair
avriq yellow pages
avriq bbb
avriq business services
avriq
Avriq India
Female Escorts Quietly, the Native American identified to people who would listen the benefit of clothing her, providing the jewels of her crown. Establishing all that after covered her in class. She would be allowed to provide back to not solely the creatures, the Native Americans, however to the white skinned people. And she has, allowing them to establish suggests that to feed their greed. Weakening areas of her muscular body. Weakened but not defeated.
Female Escorts,High Class Call Girls,Escorts Girls,Escorts ,Escorts near me
Female Escorts
Female Escorts When what seemed hours Dr Stapleton appeared and known as my name. We shook hands once more and that i followed him to his consulting room and sat down.For the primary time the gravity of true extremely hit home. I had heard that bone cancer had its own fearsome reputation, and two of my friends had died when battling this disease. I may feel the anxiety rising within me, and my heart beat appear to rise with each thought. I felt sort of a prisoner facing a choose, and expecting his verdict. Was this visiting be the start of the top of my life? I braced myself for the decision.
Female Escorts
Female Escorts: However, for the poor and middle-category Latina, it is an issue as to how several might develop false expectations that the long run holds a offer of Padrinos willing to lavish tens of thousands to hundreds of thousands on her education, wedding, new home, new car and her guaranteed rosy future.
Female Escorts,High Class Call Girls,Escorts Girls,Escorts ,Escorts near me
Female Escorts
Call girls in Kolkata
Call girls in Chandigarh
Call girls in Chandigarh
Call girls in Gurgaon
Call girls in Chandigarh
Call girls in Chandigarh
Call girls in Lucknow
Call girls in Guwahati
Call girls in Mumbai
Call girls in Jaipur
Call girls in Jaipur
Call girls in Jaipur
Call girls in Bangalore
Shed every one of your stresses, for help is a mouse click away as payday credits. Payday credits are a standout amongst the most advantageous methods for getting a loan today with for all intents and purposes no printed material or different problems. payday loans corona
شركة تركيب أثاث بالرياض...شركة صقر المملكة
الكثير منا يتعرض للانتقال من مكان لاخر للعيش في منزل جديد تتعدد اسباب التنقل ولكن الفكر الذي يشغلنا يظل واحد وهو نقل الاثاث وفكة وتركيبه من مكان الي مكان وكيفية تجنب الاضرار والمخاطر التي نواجهها في عملية الانتقال من مكان الي اخر والخوف عل كل قطعة اثاث بالمنزل وما نحتاجه من تعبئة وتغليف ونقل لتلك الاثاث لكن كل هذة المخاوف اصبحت غير مقلقة بالمرة بتواجد افضل شركة تركيب اثاث ايكيا بالرياض متخصصة في نقل الاثاث وفكه وتركيبة من مكان لاخر وايضا تغليفه وتوصيلة في امان تام وذلك مع شركة صقر المملكة افضل فني تركيب اثاث ايكيا بالرياض تتولي شركتنا عملية انتقال أثاثك إلى منزلك الجديد في امان تام دون معانة أو إرهاق لك ولأسرتك كما انها تحافظ علي كل قطعة اثاث تنقلها لضمان وصولها في امان تام ، في اقل فترة ممكنة ووجيزة تضمن لك استئنافك لعملك وأنشطتك المعتادة عليها في اسرع وقت ممكن ، حيث تتولى شركة صقر المملكة القيام بكافة الخدمات والمراحل المتطلبة لنقل أثاثك بداية من الفك والتنظيف والتغليف الجيد ونهاية بتركيب الأثاث بكل مشتملاته وترتيبه في المنزل الجديد، من خلال
فريق العمل الكبير
شركة تركيب ستائر بالرياض
فني تركيب ستائر بالرياض
شركة تركيب غرف نوم بالرياض
شركة تركيب غرف نوم صيني بالرياض
ارخص شركة تركيب غرف صيني بالرياض
افضل شركة تركيب باركيه بالرياض
ارخص شركة تركيب باركية بالرياض
لزيارة موقعنا
http://www.saqr-sa.com/%D8%AE%D8%AF%D9%85%D8%A7%D8%AA-%D8%AA%D8%B1%D9%83%D9%8A%D8%A8-%D8%A7%D8%AB%D8%A7%D8%AB-%D8%A7%D9%8A%D9%83%D9%8A%D8%A7-%D8%A8%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6/
You acquire actually taken the adaptation to use an online beforehand service. But there are actually a basal out there. Are they all alike? Can you aloft aces one with a pin? No - actually website backup they adapt in a basal of ways. Achievement are the best important ones.
You need the CCTV installation London services to prevent crime and act in the event of crime, we install and maintain CCTV, Burglar Alarms, and Wireless, Fire Alarms, Door Intercom and Access Control systems. Over 10 years’ experience in security industry! Call us now on 07867860150 or Visit our website:
CCTV companies London
You need the CCTV installation London services to prevent crime and act in the event of crime, we install and maintain CCTV, Burglar Alarms, and Wireless, Fire Alarms, Door Intercom and Access Control systems. Over 10 years’ experience in security industry! Call us now on 07867860150 or Visit our website:
CCTV companies London
alat pembesar payudara
obat perangsang wanita dh2o
obat perangsang wanita opium spray
obat perangsang wanita blue wizard
obat perangsang wanita
obat perangsang wanita sex drop
obat perangsang wanita potenzol
alat penggeli puting susu
oil lintah papua
black mamba africa
AWS Training in Bangalore - Live Online & Classroom
myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.
IOT Training in Bangalore - Live Online & Classroom
IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.
tweakbox apps
tweakbox app
tweakbox apk
India's only Digital News Channel with True Voice of India.
Finding #Championsofchange2018 #rahulshivkant
the universal post teams
rahul shivkant twitter
the universal post
rahul shivkant
rahul shivkant
best trending news in india
Download the free version for android with APK mod https://asphaltguided.com/
Click Here to Download and install Showbox Apk for Android, Windows, PC, iOS Devices for free
Nice post. It is really interesting. Thanks for sharing the post!
Buy Domain Names Online In India, Domain Name Registration In India, Best Domain Registrar In India, Web Design Services In India, Responsive Web Design Company In India, Digital Marketing Company in India
Seems good Avast Mobile Security Pro Apk Download for your android mobile phone device today.
Great article. I'm dealing with some of these issues as well..
Python Training in Bangalore ,
Angularjs Training in Bangalore ,
Angular 2 Training in bangalore ,
Best Angularjs Institute in bangalore ,
Angular 5 Training in bangalore .
Loadrunner Training in Chennai
French Classes in Chennai
Big Data Training in Chennai
Hadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Course in Chennai
JAVA Training in Chennai
web designing course in velachery
web designing course in tambaram
I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
Web Designing Course in chennai
Web Designing training in chennai
Hadoop Training in Chennai
Python Training in Chennai
Web designing Training in Porur
Web designing Training in Adyar
Web designing Training in Tnagar
Interesting information and attractive.This blog is really rocking... Yes, the post is very interesting and I really like it.I never seen articles like this. I meant it's so knowledgeable, informative, and good looking site. I appreciate your hard work. Good job.
Kindly visit us @
Sathya Online Shopping
Buy AC Online | AC Online Shopping | AC Price | Buy Air Conditioner Online
Inverter Split AC | Best Inverter AC | Split AC Price | Buy Split AC Online
Smart LED TV | Smart TV Price | LED TV Online | Buy LED TV Online
Laptop Online | Laptop Price | Buy Laptop Online | Best Laptop
Buy HD LED TV
Buy Ultra HD TV Online
Buy Mobile Online | Buy Smartphone Online in India
I’m really impressed with your article, such great & usefull knowledge you mentioned here. Thank you for sharing such a good and useful information here in the blog
Kindly visit us @
SATHYA TECHNOSOFT (I) PVT LTD
Social Media Marketing Company | SMO Company India
Social Media Marketing Packages in India
PPC Campaign Price | Google Adwords Pricing in india
PPC Company in India | PPC Services India
Google Adwords company in India | Google Adwords Services in India
Best SEO Company in india | SEO Services in India
Bulk SMS Service India | Bulk SMS India
Nice post. Thank you for this wonderful sharing.
Kindly visit us @
Sathya Park & Resorts
Hotels in Tuticorin
Best Hotels in Tuticorin
Hotel Rooms in Tuticorin
Online Hotel Booking in Tuticorin
Tuticorin Hotels Online Booking
Thanks for providing such a great Information, you can see
Custom Peptide Synthesis
Peptide Synthesis
Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
Thanks & Regards,
VRIT Professionals,
No.1 Leading Web Designing Training Institute In Chennai.
And also those who are looking for
Web Designing Training Institute in Chennai
Photoshop Training Institute in Chennai
PHP & Mysql Training Institute in Chennai
SEO Training Institute in Chennai
Android Training Institute in Chennai
if you don’t have root access or looking for a no root Lucky Patcher Apk Download version then the apk provided below will work flawlessly without root too and let you patch/bypass license verification.
Post a Comment