Ruby on Rails dev...
Follow
Find
5.8K views | +2 today
Ruby on Rails development
All development related to Ruby on Rails gets showcased here
Curated by syednazirrazik
Your new post is loading...
Your new post is loading...
Scooped by syednazirrazik
Scoop.it!

locale - How to localize existing content in Rails 3? - Stack Overflow

up vote 0 down vote favorite. I have set up a simple Rails app based on Post, Comment example from the default documentation. -> http://edgeguides.rubyonrails.org/getting_started.html. What would be the appropriate way of ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How to find memory used by ruby object? - Stack Overflow

Is there any function in ruby, to find memory used by ruby object. Similar to how C has the sizeof() function and PHP has the memory_get_usage() function. Does ruby have an equivalent function/method?
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How to test signup validation in rspec? (rails tutorial chapter 7 ...

You could always expand the tests to where you would test if an user were to insert an username but not a password, check the results, etc. I think that would be overkill though. Other than that, I think you are fine.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - Equating a column in a database with equal rows ...

This query show the number of answers every user has in common with each other: select ans1.uid as user1, ans2.uid as user2, count(*) from ans ans1 inner join ans ans2 on ans1.answer_id = ans2.answer_id and ans1.uid ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - How I can see all the queries executed and classes or ...

In your rails folder there will be a log sub-folder. Depending on where your application is running and on your configurations you'll be able to see something similar to a development.log, staging.log or production.log file in that folder ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Running your Rails apps on a Mac

Running your Rails apps on a Mac | Ruby on Rails development | Scoop.it
I keep making the obviously false assumption that people know how to run Rails apps on a Mac.
The following assumes that you have some kind of Ruby installed and some kind of Ruby gems that came with...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails 3 - Add user attributes to Devise model and update ...

up vote 0 down vote favorite. I am using Devise for authentication. Now I want to add new attributes to my User model: rails g migration AddGeneralInfoColumnsToUser username:string first_name:string middle_name:string ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Rails :scope across databases - Stack Overflow

I have three models, Alarms, Sites, Networks. They are connected by belongs_to relationships, but they live in diferent databases class Alarm < ActiveRecord::Base establish_connection :remote belongs_to :site, primary_key: ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

github - Rails how to deploy khan academy dev environment from git ...

And now i want to set the development environment with rails. The only thing i see in that repo that uses ruby are files named pack.rb and validate.rb in the build folder. I would really like to deploy the repo quickly and check if ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby - Rails simple_fields_for can't hide :id - Stack Overflow

Rails thinks that you should NEVER need to edit the :id, so it makes it difficult or impossible. If you want to DISPLAY the :id, that's fine, but there would be limited reason to present the :id such that it can be edited.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

What is the best Ruby Language book? - Stack Overflow

up vote -3 down vote favorite. I want to learn Ruby to be a Advanced Ruby Developer and I'm thinking to buy a book. Do you know what's the best Ruby Language Book? I want a book that describe all of the language features ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Engine Yard Now Offers Node.js - PCWorld

Engine Yard Now Offers Node.js - PCWorld | Ruby on Rails development | Scoop.it
VentureBeatEngine Yard Now Offers Node.jsPCWorldThe service, which Engine Yard first offered as a preview last November, will join Engine Yard's two other Web application-friendly offerings, Ruby on Rails and PHP.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

J2EE Spot: Grails vs. Ruby on Rails

J2EE Spot: Grails vs. Ruby on Rails | Ruby on Rails development | Scoop.it
Grails vs. Ruby on Rails. Are you at the point when you need to decide what will be your next Rapid Application Development framework for your new website? You heard a lot about Ruby on Rails, right? It's soooo cool and ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Rate limit your Rails app using Doorkeeper and Redis : RubyFlow

This is fork of the Rack Throttle middleware that provides logic for rate-limiting incoming HTTP requests to Rack applications using Redis. This gem was designed to experiment rate limit with Rails 3.x and Doorkeeper.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How to include twitter bootstrap in my Rails project manually ...

I'm learning Rails and want to play with Rails and Twitter Bootstrap. My Rails project layout is: ├─assets │ ├─images │ ├─javascripts │ └─stylesheets ├─controllers ├─helpers ├─mailers ├─models └─views ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Poll: Is Ruby on Rails suitable for the enterprise? | TechRepublic

Poll: Is Ruby on Rails suitable for the enterprise? | TechRepublic | Ruby on Rails development | Scoop.it
Take the developer poll, and let us know if you agree with Justin James that Ruby on Rails is best suited for public-facing Web applications.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Ruby On Rails- Becoming preferred choice among web developers ...

Ruby On Rails- Becoming preferred choice among web developers ... | Ruby on Rails development | Scoop.it
Thus, in the modern world of technology, where few seconds can let you down in competition, one framework stands out of the dossier- Ruby on Rails. These days Ruby on Rails is one of the preferred technologies over all ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Any builtin Lazy Hash in Ruby? - Stack Overflow

I need to populate a Hash with various values. Some of values are accessed often enough and another ones really seldom. The issue is i'm using some computation to get values and populating the Has becomes really slow ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How userfox sends & tracks emails in their Ruby app using the Mailgun API

Today’s post is written by Peter Clark, CEO of userfox, an awesome new startup that is changing the way businesses communicate with their customers via email. They just launched a few weeks ago as you...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - How to set values of simple_form input and assign ...

up vote 0 down vote favorite. Firstly im new to Ruby and this could possibly be the wrong approach, however... I'm trying to set two values in my select, using simple form.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - Backbone.js understanding: fetch and display with ...

First, as you said, fetch() is asynchronous, but it triggers the 'reset' event when it completes, so you should add this in AppView.initialize : pages.on('reset', this.render). Second, you never insert the HTML of PageView anywhere.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How to Install Ruby Java Bridge (RJB) on mac/ osx - Stack Overflow

I hope you have followed the instructions here, and make sure you set java run time to your library path. (Sorry I'm not sure hot to do it in Mac), But having said that, I used to rjb some time back and not had a good experience.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Building apps with rail data - The Guardian (blog)

Building apps with rail data - The Guardian (blog) | Ruby on Rails development | Scoop.it
The Guardian (blog)Building apps with rail dataThe Guardian (blog)Data/technology used: This sophisticated implementation uses lots of Network Rail data, an existing API built by Tom Cairns (see Hack #6 below) and combines these with HTML5...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

How to do a clean install of Ruby on Rails on OS X Mountain Lion ...

How to do a clean install of Ruby on Rails on OS X Mountain Lion ... | Ruby on Rails development | Scoop.it
How to do a clean install of Ruby on Rails on OS X Mountain Lion (10.8) Note: After going through some form of these steps three times already on other.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Rails 3 and HighCharts | My Ruby on Rails experiences

Rails 3 and HighCharts. Overview Highcharts are interactive Javascript charts which you can use very easily with any Rails application. I used them for one of my rails project related to Analytics. Basics But the only difficulty which I faced ...
more...
No comment yet.