[Rails] Re: Rspec for polymorphic classes

2014-09-26 Thread andreo
I am not sure I understand what you need, can you shows us your classes? It will be easier to answer your question if you give us your code maybe in a gist? On Thursday, 25 September 2014 23:51:03 UTC+2, Ruby-Forum.com User wrote: Factory Girl would be great too! Just a simple one will do!

[Rails] Ruby on Rails Developer for Tech Start Up in Basel - Switzerland wanted. Visa sponsorship - only EU

2014-09-26 Thread Thomas Lersch
Our client, a top swiss tech start-up based in Basel are now looking for a Ruby on Rails Developer with 4+ years experience to join their expanding team. Responsibilities: • Develop new features using a BDD approach. • Code Review • Writing code whilst collaborating with the product owner and

[Rails] how to asign strong perameters using radio button checked value in rails

2014-09-26 Thread Sai Ch
please help me to assign strong params myapplication view: div style=margin:1% 0 %= f.label :choose % span id=upload %= f.radio_button :choice, 1 % %= f.label :choice, New Presentation, :value = 1, :style = 'margin: -18px 25px 0' % /span span

[Rails] Re: how to asign strong perameters using radio button checked value in rails

2014-09-26 Thread Sai Ch
please anybody give me some solution...? -- 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 stop receiving emails from it, send an email to

Re: [Rails] Re: how to asign strong perameters using radio button checked value in rails

2014-09-26 Thread Vivek Sampara
Is choice method defined anywhere ? if choice == 1 And keep your permitted params method outside create. def create end def webnairs_params if choice == 1 params.require(:webnair).permit(:user_id, :ppt, :choice, :title, :description) else

[Rails] Re: Controller / irb

2014-09-26 Thread Mohammed Rashid
Thank you Michal, your post is at must help, however I have discovered a new gem called fullcalendar. Do you think that with this, you can link these id's so that we can view each attribute in a calendar. So basically like the day will be on the left but then I will be able to display this

[Rails] Clender help/advise

2014-09-26 Thread Mohammed Rashid
im after somebody who is an expert at Ruby on Rails with calendars (prefereably the fullcalendar gem). I am wanting to display information on my calendar so that the attributes name:, email:, mobile:, category:, other: and name_of_song: link_to_song: will appear on the calendar on a weekly

[Rails] Re: Re: how to asign strong perameters using radio button checked value in rails

2014-09-26 Thread Sai Ch
Vivek Sampara wrote in post #1158513: Is choice method defined anywhere ? if choice == 1 And keep your permitted params method outside create. def create end def webnairs_params if choice == 1 params.require(:webnair).permit(:user_id, :ppt, :choice, :title, :description)

Re: [Rails] Re: Re: how to asign strong perameters using radio button checked value in rails

2014-09-26 Thread Vivek Sampara
if you should check it like if params[:choice].to_s == 1 #do something else #do something else end On Fri, Sep 26, 2014 at 6:37 PM, Sai Ch li...@ruby-forum.com wrote: Vivek Sampara wrote in post #1158513: Is choice method defined anywhere ? if choice == 1 And keep your permitted

[Rails] A simple Pomelo clone written in Ruby using EventMachine.

2014-09-26 Thread Minix Li
I have replicated Pomelo's main function using Ruby and EM in the past few months. Recently, I focus on my daily work, so I open source the project and hope to have more people participate in this project. For those interested in, here is the repo: https://github.com/minixli/pomelo, other

[Rails] Re: Couldn't find 'migration' generator

2014-09-26 Thread eric felleiter
Isn't it just script/generate migration On Thursday, September 25, 2014 3:13:12 AM UTC-4, M,Gopi M.gopinath wrote: Hi, I am trying to add a field in a existing table (database) in Rails 2.3.5 and ruby 1.8.6. I gave a command to generate a migration, Here as follows, ruby

[Rails] Re: Rspec for polymorphic classes

2014-09-26 Thread Jan Yo
class Address ActiveRecord::Base belongs_to :addressable, polymorphic: true end My Second Model: app/models/user.rb class User ActiveRecord::Base has_many :addresses, as: :addressable end My third model: app/models/company.rb class Company ActiveRecord::Base has_many

Re: [Rails] Rspec for polymorphic classes

2014-09-26 Thread Jason Fleetwood-Boldt
I'm not sure why you can't write a normal rspec against these objects--- generally rspec tests the objects themselves and how their public methods are implemented (and, when appropriate, the internals of the object implementation). The decision to make the attachment polymorphic -- which

[Rails] Rails developer needed in Columbus, OH

2014-09-26 Thread david
Full time positions available at a digital market agency in Columbus, OH. We have an immediate need for at least 2 full time rails developers. Salary is negotiable and dependent on skill level. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk