[Rails] Seeking a NZ Based Ruby Dev to assist with a project / startup

2014-03-25 Thread Richard Harding
Hi All Seeking a Ruby focused Dev to assist with a project / startup Subscription based service catering for the everyday Kiwi consumer. - Must have knowledge / experience of recurring billing engines - CSS/Java general overview - Understanding of - or past experience in smart

[Rails] Looking for some glue between Strong Parameters and CanCan

2014-03-25 Thread Sebastian Gaul
Hello Rails World, does anybody know a good solution for Strong Parameters in a Rails app authorized by Cancan (or a similar authorization gem)? def user_params if current_user.admin? params.require(:user).permit! else params.require(:user).permit(:password, :password_confirmation)

[Rails] Re: If you were to code a marketplace app like AirBnB today, what technology & stack would you use?

2014-03-25 Thread James Carrasquer
If you're looking for a new NoSQL option, check out http://orchestrate.io, where all data is accessed via a RESTful interface. I've been working on a couple of gems (one wraps the api, while the other is a rails model mapper) and recently pushed them up to rubygems.org. You can find the docs at h

[Rails] Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser

2014-03-25 Thread vell
Hello all, I am have an app that is hosted on heroku (rails 4 | ruby 2.0) that I am using paperclip-dropbox to upload attachments to a blog. I have created a download link for people who read the blog to be able to download the attachments but I am not able to get the file to actually download

[Rails] Re: Designing routes for different parts of a model

2014-03-25 Thread masta Blasta
masta Blasta wrote in post #1140924: > I have a model in my app called Report, that has a lot of fields. > > In the view we show these fields in tabbed sections, grouped by theme, > to make it easier on the user. When these were first built, the > developers at the time decided to treat these "them

[Rails] Wickes Kitchens

2014-03-25 Thread Srgdp Srgdp
Wickes Kitchens , Go to www[.]wickeskitchensreviews[.]co[.]uk Wickes Kitchens www[.]wickeskitchensreviews[.]co[.]uk -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Designing routes for different parts of a model

2014-03-25 Thread masta Blasta
I have a model in my app called Report, that has a lot of fields. In the view we show these fields in tabbed sections, grouped by theme, to make it easier on the user. When these were first built, the developers at the time decided to treat these "themes" as resources and created separate routes,

[Rails] Re: trouble with install of 2.3.9 due to rake requires version of ruby > 1.9

2014-03-25 Thread skrite
looks like that worked, i installed rake version 0.9.2.2 and then was able to install rails 2.3.9 thanks very much for your help sk On Tuesday, March 25, 2014 10:37:09 AM UTC-5, skrite wrote: > > hey all > > i am trying to install rails into a new computer with rvm. > > i have installed ruby 1.8.

[Rails] Re: trouble with install of 2.3.9 due to rake requires version of ruby > 1.9

2014-03-25 Thread masta Blasta
skrite wrote in post #1140917: > hey all > > i am trying to install rails into a new computer with rvm. > > i have installed ruby 1.8.7 > and rubygems 1.3.7 --force > > these are both versions that i must have to run my website. > the problem is that when i try to install rails with* gem install >

[Rails] trouble with install of 2.3.9 due to rake requires version of ruby > 1.9

2014-03-25 Thread skrite
hey all i am trying to install rails into a new computer with rvm. i have installed ruby 1.8.7 and rubygems 1.3.7 --force these are both versions that i must have to run my website. the problem is that when i try to install rails with* gem install --version 2.3.9 rails* i get the following

Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-25 Thread Colin Law
On 25 March 2014 15:10, Andy Jeffries wrote: > > On 17 March 2014 15:32, Colin Law wrote: >> >> Did you try swapping the two lines round and checking that the result >> is consistent? > > > Yes, it's consistent for me. Was it not for you or are you just asking? My comment "Or, possibly, slower"

Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-25 Thread Andy Jeffries
On 17 March 2014 15:32, Colin Law wrote: > Did you try swapping the two lines round and checking that the result > is consistent? > Yes, it's consistent for me. Was it not for you or are you just asking? Cheers, Andy -- You received this message because you are subscribed to the Google Gro

[Rails] cancan gem being replaced

2014-03-25 Thread mike2r
I just came across this so I thought I would post it on this board since I see cancan come up a lot. It seems that Ryan Bates (who is primarily responsible for cancan) is taking a hiatus and the gem is no longer being actively maintained. The collaborators on that gem have formed a new team a

[Rails] Re: Bootstrap Navbar, with options updating a yield in the same view?

2014-03-25 Thread mike2r
On Tuesday, March 25, 2014 8:00:14 AM UTC-4, fayre...@gmail.com wrote: > > So after a couple of days of trawling various forums, tutorials etc - I'm > still no closer to doing what is seemingly something straightforward - > namely, have links on a Navbar populate a named yield with the contents

[Rails] Re: Connect to MariaDB over SSH tunnel

2014-03-25 Thread Rick
http://www.postgresql.org/docs/9.3/static/ssh-tunnels.html https://dev.mysql.com/doc/workbench/en/wb-manage-db-connections-ssh.html On Tuesday, March 25, 2014 7:05:24 AM UTC-4, Ruby-Forum.com User wrote: > > Hi everyone, does anybody know how to connect to production DB over ssh > tunnel using

[Rails] Bootstrap Navbar, with options updating a yield in the same view?

2014-03-25 Thread fayrehouse
So after a couple of days of trawling various forums, tutorials etc - I'm still no closer to doing what is seemingly something straightforward - namely, have links on a Navbar populate a named yield with the contents of a partial. I'm probably missing something fundamental, but hey! I've asked

[Rails] Re: Activity streams/News feeds with Aggregation, MySQL and Redis support

2014-03-25 Thread James Davis, PhD
http://railscasts.com/episodes/406-public-activity Is this what you want to accomplish? He uses the public activity gem. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, s

[Rails] Connect to MariaDB over SSH tunnel

2014-03-25 Thread Jhon Cena
Hi everyone, does anybody know how to connect to production DB over ssh tunnel using rails? I'm using MariaDB. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and

Re: [Rails] Re: "class Admin::UsersController < ApplicationController". What does the double colon do here?

2014-03-25 Thread Christian Kruse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 25.03.2014 09:53, Konstantinos Rousis wrote: > class Admin::UsersController ... end > > is equivalent to > > module Admin class UsersController ... end end Only partly right. There is a slight difference. As long as the module (or namespa

Re: [Rails] If you were to code a marketplace app like AirBnB today, what technology & stack would you use?

2014-03-25 Thread Karthikeyan A K
Lack of control. The cost. Plus I am nervous about their addons, weather if I use it my app will be locked into heroku infrastructure. But its great place to show a small free demo to some one. On Tue, Mar 25, 2014 at 8:52 AM, Sampath Weerasinghe wrote: > > curious what is it about heroku that

[Rails] Re: "class Admin::UsersController < ApplicationController". What does the double colon do here?

2014-03-25 Thread Konstantinos Rousis
This is one of the ways to provide namespacing in Ruby and avoid same-name conflicts (e.g. with user code or other gems). class Admin::UsersController ... end is equivalent to module Admin class UsersController ... end end On Monday, 24 March 2014 14:43:24 UTC+1, Brandon wrote: > > I saw

Re: [Rails] How can I solve error: failed to push some refs to 'g...@heroku.com:quiet-bastion-4831.git'?

2014-03-25 Thread Colin Law
On 25 March 2014 09:13, Jaimin Pandya wrote: > ... >checking for sqlite3.h... no >sqlite3.h is missing. Try 'port install sqlite3 +universal', >'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' >and check your shared library search path (the >lo

[Rails] How can I solve error: failed to push some refs to 'g...@heroku.com:quiet-bastion-4831.git'?

2014-03-25 Thread Jaimin Pandya
*I am using ruby-1.9.3 with rubygem-1.8.24* When I run "git push heroku master" command i got following error: Initializing repository, done. Counting objects: 82, done. Delta compression using up to 2 threads. Compressing objects: 100% (64/64), done. Writing objects: 100% (82/82), 152.43 KiB, do

Re: [Rails] Database is not updating after the Active Record Migration.

2014-03-25 Thread Colin Law
On 24 March 2014 20:50, Cameron Diggs wrote: > Hello. > > I created a simple database to test adding a column in an active record > migration. Using phpMyAdmin and ROR, this is the code I used for the > migration: > > class AddColumns < ActiveRecord::Migration > def self.up > add_column :

Re: [Rails] Re: Re: Use a module for this?

2014-03-25 Thread Colin Law
On 24 March 2014 22:48, Dave Castellano wrote: >> >> Do not make us wade through lots of code trying to understand what is >> going on. Explain the problem and show us just a few lines of code if >> necessary. For instance of what type is play_list? You said it was >> an instance of a model, bu

Re: [Rails] Database is not updating after the Active Record Migration.

2014-03-25 Thread Abdulsattar Mohammed
You probably didn't add :need_it to the strong parameters (params.require(:users).permit(:need_it)) or if you're using Rails 3.x, you didn't add it to attr_accessible. On Tue, Mar 25, 2014 at 2:20 AM, Cameron Diggs wrote: > Hello. > > I created a simple database to test adding a column in an ac

Re: [Rails] If you were to code a marketplace app like AirBnB today, what technology & stack would you use?

2014-03-25 Thread Sampath Weerasinghe
curious what is it about heroku that turns people off i even heard heroku is backed by the matz himself. -Sam On Thursday, March 20, 2014, Brandon wrote: > Would you replace any one on my list with something else? Which DB, > hosting solution and source control would you use? > > > On Wednesd

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2014-03-25 Thread Ted Kaplan
Creek is good, I'd also recommend dullard, a gem that I wrote. Its output format may be more convenient for your case. https://github.com/thirtyseven/dullard http://rubygems.org/gems/dullard -Ted On Friday, October 11, 2013 1:35:39 PM UTC-7, Monserrat Foster wrote: > > I forgot to say after it

[Rails] Database is not updating after the Active Record Migration.

2014-03-25 Thread Cameron Diggs
Hello. I created a simple database to test adding a column in an active record migration. Using phpMyAdmin and ROR, this is the code I used for the migration: class AddColumns < ActiveRecord::Migration def self.up add_column :users, :need_it, :boolean end def self.down remov