Ruby on Rails dev...
Follow
Find
5.9K views | +2 today
 
Scooped by syednazirrazik
onto Ruby on Rails development
Scoop.it!

Testing URLs in Django (like Rails route testing) - Wilcox ...

Both Django and Rails want you to use their systems to dynamically create URLs to other places on the site, instead of hard-coding the path in the href part of the a tag. This makes life easier both now and in the future.
more...
No comment yet.
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!

Rails: How to automatically query for items that belong to user in ...

I'm developing an app with Rails 3.2.11 and I'm using Devise and CanCan. I'm setting permissions in the ability.rb file so the user can only manage items that belong to his company, and everything seems to work just fine.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Problems reading numerical data from Ruby Cassandra Gem ...

I'm having problems reading data from Cassandra using the Cassandra Gem.... Here is my code: require 'cassandra' @states = {} @client = Cassandra.new('Logs', "10.1.1.11:9160") @client.get_range(:PlaybackStates) do ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Ruby dynamically naming arrays - Stack Overflow

Ruby does not support dynamic local variable names. (Dynamic instance/class variable names are a different story, but are best left as an "advanced topic" for now.) However, this can be easily represented using a Hash.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

RubyGems.org hacked, interrupting Heroku services and putting sites using Rails at risk

RubyGems.org hacked, interrupting Heroku services and putting sites using Rails at risk | Ruby on Rails development | Scoop.it
"It's a critical part of the Ruby infrastructure," the programmer said. "Everything depends on RubyGems." (RT @amazedsaint: This is insane. RubyGems got hacked, millions of Ruby sites at risk, Heroku down.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

In Ruby, how to read data column wise from a CSV file? - Stack ...

Transpose your CSV file. By doing this your rows covert to column and viceversa. Below a simple example of transpose.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Learn Ruby on Rails with Pearson

Learn Ruby on Rails with Pearson | Ruby on Rails development | Scoop.it
Learn Ruby on Rails - The ultimate video tutorial for beginners! (Do you want to learn: http://t.co/mo1TlhG3 - Ruby on Rails for Beginners- #LEARN)
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

authentication - Single User Rails Application - Stack Overflow

If you just need some simple auth logic, you can just use HTTP authentication and hardcode your username and password.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Php, Yii And Ror - Yii Framework Forum

Php, Yii And Ror - Yii Framework Forum | Ruby on Rails development | Scoop.it
Yii is a high-performance component-based PHP framework best for Web 2.0 development.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails 3.2 - Could not find generator formtastic_stylesheets ...

up vote 0 down vote favorite. I am new in Rails. I want to generate stylesheets from formtastic gem. I use windows 7. I use Rails 3.2.1 and ruby 1.9.3p125. I have installed formtastic-2.2.1 I command: rails generate formtastic_stylesheets.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - Avatar is not getting uploaded using paperclip and ...

So can anyone help me to fix this? thanks in advance. EDIT: It seems like even without an attachment that nothing is getting saved in the database. Thats wired... ruby-on-rails ruby-on-rails-3 · amazon-s3 paperclip ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Modify color of images in ruby - Stack Overflow

Modify color of images in ruby - Stack Overflow | Ruby on Rails development | Scoop.it
How I can change the colors from this: into this: I generated the output image using Gimp with the input image as layer one, and the background color from the image as layer two, in the Layers panel I selected the mode ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - Is there any point using RVM gemsets with mod_rails ...

current passenger does not support different rubies, support for different rubies is easily added with this documentation: https://rvm.io/integration/passenger/ ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - How do I display a d3.js graph with RoR? - Stack ...

Browse other questions tagged ruby-on-rails sqlite3 or ask your own question. ... How to make a foreign key connect with sqlite3 and Ruby on Rails ... Sqlite3 database rails how to remove all records from command line ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Exiting from ri (ruby documentation viewer) in Mac OS - Stack Overflow

Any time I want to use ruby's ri tool, (e.g. after typing something like ri GC ), after it shows the documentation, I can find no way of exiting it and none of the usual key combinations for terminating a command-line command ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Building a PaaS in Ruby

Building a PaaS in Ruby | Ruby on Rails development | Scoop.it
Stackato not only supports developers in pushing apps using any stack, but it is also built using many different technologies and programming languages. Ruby is still the predominant language for these technologies, with ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Dynamically including/excluding arguments in Rails - Stack Overflow

I have an action method that takes a variable number of arguments, like this: action!(:message => message, :photo => photo, :status => status). If an argument is included it must be valid (based on certain criteria), ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Why shorter methods are better

Why shorter methods are better | Ruby on Rails development | Scoop.it
TL;DR Longer methods are more likely to need to change when the application changes. The Longer Story Shorter methods protect my investment in the code, in a number of ways. First: Testability. I e...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Ruby on Rails Find a String in DB - Stack Overflow

please don't shout... I'm trying to run a search query to find the Firstname in the database, basically trying to find a specific user then show that user. What works in the console is Client.where but I can't seem to get this to work ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Ruby on Rails receives third security patch in less than a month

Ruby on Rails receives third security patch in less than a month | Ruby on Rails development | Scoop.it
Developers of the Ruby on Rails Web development framework released versions 3.0.20 and 2.3.16 of the software on Monday in order to address a critical remote code execution vulnerability.
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Rails Routes With Query Parameters - Stack Overflow

Not really sure the terminology involved, I didn't find anything searching but if someone can point me in the right direction I'll take another look. I have a controller called Journals. I would like to have a date optionally part of the ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

ruby on rails - Haml syntax: split a line to a couple of rows - Stack ...

I use HAML in my rails project for my html templates. I would like to figure out if its possible to divide a very long line and make it a couple of rows: %a.open-service{href: '#', data: { service_name: service.description, ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Questions And Answers on Application Design – Ruby on Rails ...

Ruby on Rails, often shortened to Rails, is an open source full-stack web application framework for the Ruby programming language. Ruby on Rails runs on the general-purposeprogramming language Ruby, which predates it ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Barcelona Ruby Conference 2013

Barcelona Ruby Conference 2013 | Ruby on Rails development | Scoop.it
Barcelona Ruby Conference is a two-day conference about Ruby - a dynamic, open source programming language with a focus on simplicity and productivity. (RT @ruxii: Barcelona Ruby Conference 2013 is coming on 14 & 15 September!
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

Ruby print text, characters in Hindi, Sanskrit etc languages - Stack ...

I want to print text/characters in Hindi/Sanskrit language.Can anybody guide me using Ruby language how can I achieve this? Are there any libraries/gems available to achieve this? I tried searching for this but could not find ...
more...
No comment yet.
Scooped by syednazirrazik
Scoop.it!

mysql - Storing list of actions in Rails app - Stack Overflow

I need some advice. I'm making an app that is a little complicated to learn. It has a user model. Once a user signs up, I'd like a modal dialog to appear the first time (and only the first time) he/she access certain pages.
more...
No comment yet.