Re: [Rails] help for ideas of instance method or controller

2012-11-11 Thread Colin Law
On 11 November 2012 06:31, Soichi Ishida li...@ruby-forum.com wrote: I have a general question about Rails controller or instance method. Say, I have two models, Give Take Each of these has an identical set of columns like, Give : weight:integer, day:date Take: weight:integer,

[Rails] Re: help for ideas of instance method or controller

2012-11-11 Thread Soichi Ishida
It looks to me as if you should only have one table for both give and take. Is there a reason why this is not possible. You might be right. I will try that way. Thanks. soichi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] Re: help for ideas of instance method or controller

2012-11-11 Thread Colin Law
On 11 November 2012 09:24, Soichi Ishida li...@ruby-forum.com wrote: It looks to me as if you should only have one table for both give and take. Is there a reason why this is not possible. You might be right. I will try that way. Thanks. Note that you can have multiple associations into

[Rails] Re: Re: help for ideas of instance method or controller

2012-11-11 Thread Soichi Ishida
Note that you can have multiple associations into the same table using and :class_name option. So for example class Something belongs_to :give, :foreign_key = give_id, :classname = Widget belongs_to :take, :foreign_key = take_id, :classname = Widget Have a look at the Rails Guide on

[Rails] Spree commerce and styling menu CSS

2012-11-11 Thread Albert K.
Hi. I making a shop on spree e-commerce, and I have problem with style menu CSS. http://ns383595.ovh.net/test/menu.png . How can I edit CSS file on spree to have manu like in My template like this http://rafal-serwer.gogler.eu/intimiti/index.html -- Posted via http://www.ruby-forum.com/. --

[Rails] RSpec: scaffold index undefined method create

2012-11-11 Thread Soichi Ishida
Rails 3.1.3 rspec-rails (2.11.4) rspec 2.11.1 I have generated a scaffold named Plan. And I have not done RSpec tests for controllers at all. schema.rb create_table plans, :force = true do |t| t.integer give_take t.integer weight t.boolean check_in t.datetime created_at

[Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread M
I am new to PHP programming and came across Ruby on Rails. I want to move towards an actual job in programming and wonder if I need to learn Ruby on Rails? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] JOB: Late-Stage Video Sharing Site, Dev Needed

2012-11-11 Thread TK
Hello, I am seeking a developer to help complete the launch-critical elements of a new video sharing website. Front-end features and UI are about 90% complete, so this role will primarily consist of beefing up back-end admin features, troubleshooting/polishing existing features, and making

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Sam Pizzey
*Need* to? No. Is there work around in RoR? Plenty. Same could be said for PHP, though. On Fri, Nov 9, 2012 at 5:01 PM, M demingchiroprac...@gmail.com wrote: I am new to PHP programming and came across Ruby on Rails. I want to move towards an actual job in programming and wonder if I need to

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Иван Бишевац
http://guides.rubyonrails.org/ is nice starting point. Also I suggest online courses for example, SaaS course part 1: https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about and SaaS course part 2: https://www.edx.org/courses/BerkeleyX/CS169.2x/2012_Fall/about. They are great way to dive

[Rails] gem CanCan help

2012-11-11 Thread Erwin
I defined a block in my ability model elsif admin.has_role? :manager can [:update, :destroy, :lock, :unlock, :reset_passord], Admin do |another_admin| another_admin.is? :employee end but it seems not to be taken in account when testing it : @manager.is? :manager

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Hassan Schroeder
On Fri, Nov 9, 2012 at 9:01 AM, M demingchiroprac...@gmail.com wrote: I am new to PHP programming and came across Ruby on Rails. I want to move towards an actual job in programming and wonder if I need to learn Ruby on Rails? You need to learn several languages and frameworks as part of

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Norbert Melzer
Ruby on Rails is not related to PHP. You could give symfony a try which is a PHP Framework inspired by Rails. Am 11.11.2012 12:44 schrieb M demingchiroprac...@gmail.com: I am new to PHP programming and came across Ruby on Rails. I want to move towards an actual job in programming and wonder

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Luis Vasconcellos
If you want a web development job, I would suggest that you learn first the basics of html5/css/javascript, than you move to server-side development with php or rails. * Luis Va**sconcellos,** *Web Developer twitter: @vasconcelloslf http://www.twitter.com/vasconcelloslf mobile: 55 21 95100576

[Rails] Re: gem CanCan help

2012-11-11 Thread Erwin
[SOLVED.. I guess] as per CanCan wiki , https://github.com/ryanb/cancan/wiki/Defining-Abilities-with-Blocks I passed an Admin scope Admin class scope :employees, Admin.joins(:roles).where(:roles = { :name = employee, :resource_type = nil}).select(DISTINCT admins.*) in Ability model if

[Rails] sorcery gem virtual fields problem

2012-11-11 Thread roelof
Hello, I have followed this tutorial : https://github.com/NoamB/sorcery/wiki/Simple-Password-Authentication I have to make this form : # app/views/users/_form.html.erb div class=field %= f.label :password %br / %= f.password_field :password % /div div class=field %= f.label

Re: [Rails] sorcery gem virtual fields problem

2012-11-11 Thread Norbert Melzer
Form_for/form_tag is missing. Am 11.11.2012 18:50 schrieb roelof rwob...@hotmail.com: Hello, I have followed this tutorial : https://github.com/NoamB/sorcery/wiki/Simple-Password-Authentication I have to make this form : # app/views/users/_form.html.erb div class=field %= f.label

Re: [Rails] sorcery gem virtual fields problem

2012-11-11 Thread roelof
Oke, then there is a error in the tutorial. Roelof Op zondag 11 november 2012 19:43:14 UTC+1 schreef Norbert Melzer het volgende: Form_for/form_tag is missing. Am 11.11.2012 18:50 schrieb roelof rwo...@hotmail.com javascript:: Hello, I have followed this tutorial :

Re: [Rails] sorcery gem virtual fields problem

2012-11-11 Thread Norbert Melzer
No, there ins Nov error in the Tutorial, it's just that the snippet you posted is very early in that tutorial if you had completed it before asking then you had found the complete Form in the partial. :-) Am 11.11.2012 19:48 schrieb roelof rwob...@hotmail.com: Oke, then there is a error in the

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-11 Thread Jordon Bedwell
On Sun, Nov 11, 2012 at 9:33 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: You need to learn several languages and frameworks as part of becoming a reasonably competent programmer. The more diverse the better, but the exact choices are up to you :-) Jack of all trades, master of

Re: [Rails] sorcery gem virtual fields problem

2012-11-11 Thread roelof
I have completed that page. I see two forms but they are not the same. The first is this one : # app/views/users/_form.html.erb and the second one is this one : # app/views/user_sessions/_form.html.erb Roelof Op zondag 11 november 2012 21:09:06 UTC+1 schreef Norbert Melzer het volgende: