Notch8 Ruby on Rails Web Application Developers

Full-throttle Ruby on Rails Development

  • About
    • Team
    • Active Clients
  • Work
    • Capabilities
    • Framework Updates
    • HykuUP
    • Code Audits and Reviews
    • Ongoing Application Maintenance and Support
  • Clients
    • Case Study: ShopTab
    • Case Study: UCSD
    • Case Study: WUSTL
    • Case Study: UCLA
    • Case Study: CablingPlus
  • Events
  • Blog
  • Contact
You are here: Home / Archives for Rails

Rails

Blending React into a Rails Project

November 7, 2016 by Steven Leave a Comment


With the release of Rails 5.1 and the integration of webpack and yaml into rails all that is described here can be done much more simply using what is integrated into rail. That said, if you can’t upgrade yet or require serverside render the solutions below are still great options for you.


While the dawn of the large JS frontend app is long past and there is a new magical unicorn and pixi dust JS framework every time you turn around, there are still a lot of stock standard web apps out there. As a web consultancy, these apps have been our bread and butter for quite some time and there is no real need to change them. They just work.

But as things change, it would be nice to add some of the dynamic features of the new javascript hottness to our standard rails apps. Here are a few ways to integrate React into rails.

Notice: there is going to be a stupid amount of alliteration in this post. Fair warning. React rendering in Rails rendered radical web app.

React-Rails gem

I am starting here because this is the easiest way to get started with React on Rails. Per usual, just include the gem in your gem file gem react-rails, bundle install, and then run the install generator rails g react:install.

The reason I say this is it is fully integrated with sprockets and the current rails asset pipeline. if you already understand the asset pipeline and helper methods, then you’re good to go. Also, there is no dependacy on npm.

This is all you need to mount a React component to a spot on the page. That is this helper react_component.

<%= react_component("MyCoolWidget", prop1: "123", prop2: "abcd") %>

Other features include the ablitiy to render the components on the server for faster rendering and SEO, rendering a component as a view, and writing your components in ES2015 syntax or CoffeeScript.

One problem to note is that this doesn’t support a module system for JavaScript like Common-JS or ES6 imports. So, working with packages for React that do not have a version that does not export a useable variable is difficult.

[Read more…]

Filed Under: Coding Corner Tagged With: JavaScript, Rails, React

Implementing a Bootstrap Theme

June 29, 2016 by Crystal Richardson 2 Comments

After completing the development bootcamp, LEARN! in San Diego, and joining Notch8 as Interns, my team members and myself were tasked with creating a web app using a bootstrap template. We had worked on front end and had previously created web apps from the ground up in our group projects but we spent a full day browsing blogs and guides on how to best implement a template. Unfortunately, the guides we had found were not as straightforward as we would have liked. None offered a simple set of instructions of what to do and the rational behind it. So we created our own guide.
The most important aspect of web development to understand when using a bootstrap template is the asset pipeline. It is highly recommended that you familiarize yourself with this framework before attempting to use a template.
In simple terms, using a template requires that you copy all the images, scripts and css into the asset pipeline. Once this is done, you are free to use whatever you want from the html part of the template and take out what you don’t need. The following is a step by step guide on how to achieve this.

[Read more…]

Filed Under: Coding Corner Tagged With: Bootstrap, Rails

Phrack Magazine Article in Hacking Rails

May 16, 2016 by Matt Clark Leave a Comment

Older Rails applications are more vulnerable to hacking now

Phrack magazine, a prominent hacking zine, just published a new issue. For the first time, it includes an article on Rails vulnerabilities and how to exploit them. If your app is current, there’s nothing to worry about, but older apps should definitely be aware of all these items:

http://phrack.org/issues/69/12.html#article

It’s also good to see the kinds of attack vectors people are exploiting so that we keep a sharp eye out for new issues as they arise.

Filed Under: Coding Corner Tagged With: Rails, Security

Rails 5 ActiveRecord Changes

November 9, 2015 by Jeremy Clemans 1 Comment

 

You Won’t Believe These 7 Insane Changes in Rails 5 ActiveRecord!

Just when you were feeling like a level 11 wizard with Rails 4 somebody had to go and change it all up. Actually there are some pretty cool changes coming… in the next few weeks? Months? I don’t know, but change has a way of coming sooner than you think. The time is ripe for preparation. What’s that? You’re still running your app on Rails 2.3? Well shitsticks. Let’s just continue, shall we?

[Read more…]

Filed Under: Coding Corner Tagged With: ActiveRecord, Rails

Capabilities & Services

Notch8 has an experienced team of web developers distributed on the west coast of the U.S. available for:

  • Design, Planning, and Architecting
  • Cross Platform Mobile
  • Scoping and Technical Consulting
  • Code Audits and Reviews
  • iOS and Android Development
  • Ruby on Rails and Javascript Development
  • Full Stack Development
  • Samvera / Hyku Data Preservation Solutions
  • Framework Upgrades
  • Monitoring and Support
  • Optimization and Performance Tuning
  • Team
  • Contact Us
  • © Notch8 2017, some rights reserved

Copyright © 2019 · Parallax Pro Theme on Genesis Framework · WordPress · Log in