[Rails] Re: has_and_belongs_to_many question

2014-01-25 Thread Martin Sloan
Fred, You made me think I might have run the migration prematurely. So far, all examples in the book have worked perfectly (I can't say that for many books!) so it might be a layer 8 issue I don't remember running it before I updated the migration file, but it's possible. If the t.refer

Re: [Rails] has_and_belongs_to_many question

2014-01-25 Thread Martin Sloan
Blaine, Thanks for the post. The book I'm reading followed up the basic join example (many-to-many) with a 'rich' join (has_many :through). From what I understand there's a scenario for both and they're similar but there are differences. In the book's example the articles and categories tabl

[Rails] #YesWeCode Oakland Gala: An Evening with Van Jones & Friends

2014-01-25 Thread Kalimah Priforce
Join Startup Weekend Oakland, Rebuild the Dream and #YesWeCode in celebrating the launch of Oakland's first Startup Weekend at Impact Hub Oakland and

[Rails] Re: [Need advice for newbie] How to define structure of applications in case I have multiple user roles.

2014-01-25 Thread Pavel Krejsa
Hi, Thanx a lot I will check this gem and it's ability. It is pretty cool I would not have to separate all controllers and views. Pavel K. On Saturday, January 25, 2014 10:27:37 PM UTC+1, Frederick Cheung wrote: > > On Saturday, January 25, 2014 9:03:09 PM UTC, Pavel Krejsa wrote: > > Hi, > >

[Rails] Re: [Need advice for newbie] How to define structure of applications in case I have multiple user roles.

2014-01-25 Thread Frederick Cheung
On Saturday, January 25, 2014 9:03:09 PM UTC, Pavel Krejsa wrote: > Hi, > > > I am really newbie in RoR, I am just reading this book. I am trying to make > very simple application who should have 3 user roles (3 groups of many > users). Each role should have different permission set (of course

[Rails] [Need advice for newbie] How to define structure of applications in case I have multiple user roles.

2014-01-25 Thread Pavel Krejsa
Hi, I am really newbie in RoR, I am just reading this book. I am trying to make very simple application who should have 3 user roles (3 groups of many users). Each role should have different permission set (of course i have to i

[Rails] Re: before_filter CASClient::Frameworks::Rails::Filter

2014-01-25 Thread Matt Jones
On Friday, 24 January 2014 05:41:21 UTC-5, Anand Vignesh wrote: > > Hi , > > > Why does this " before_filter CASClient::Frameworks::Rails::Filter " is > not working with rails 4.1.0.beta1 ??? > > Is there any solution to fix it? Or else is there gemfile which fixes > it > In general, try

[Rails] Re: Request with Content-Type: "application/json" add extra parameter.

2014-01-25 Thread Matt Jones
On Thursday, 18 April 2013 15:19:09 UTC-4, rob...@capansis.com wrote: > > Hi Frederick, > > Thanks for the help, disabling wrap_parameters in my initializer fixed my > problem. Reason why I am setting the content type for the GET is just > because I have jQuery to always ask for JSON. I could

[Rails] [ANN] beer.db Now Includes Web Admin Rails Engine - mount BeerDbAdmin::Engine

2014-01-25 Thread Gerald Bauer
Hello, FYI: The beer.db - a free open public domain beer, brewery n brewpubs dataset - now includes a web admin Rails engine that you can include in your web app. Example: mount BeerDbAdmin::Engine, :at => '/db' See the Rails engine in action [1]. More info in the README.md [2]. Cheer

Re: [Rails] Production vs Development

2014-01-25 Thread BeeRich
That’s good information. Thanks for that. I got Passenger working but as you have indicated, managing vhosts would be much easier with a single local domain reference. I will check it out. Cheers On Jan 25, 2014, at 8:14 AM, Frederick Cheung wrote: > It's RackEnv (which is an alias fo

[Rails] Re: has_and_belongs_to_many question

2014-01-25 Thread Frederick Cheung
On Friday, January 24, 2014 7:25:02 PM UTC+1, Martin Sloan wrote: > Hello, > > > > My issue is that after I migrate this file, when I try to make an association > between the article and category object (article.categories << category) it > spits an error that article_id does not exist in artic

Re: [Rails] Production vs Development

2014-01-25 Thread Frederick Cheung
On Friday, January 24, 2014 7:05:43 PM UTC+1, Walter Lee Davis wrote: > > > > > Other than that I don’t know where to find other Passenger parameters. Is > > there no way to use Passenger for a local development environment? > > > > Sure. You just need to read through the passenger docs to f