Rails 3.1.3
I am using Formtastic gem in order to deal with multi-select
dependencies.
<%= semantic_form_for(@give) do |f| %>
<%= f.inputs do %>
<%= f.input :departure,
:collection => Departure.find(:all, :order=>:city).collect{ |c|
[c.city,c.id]},
:required=>true %>
<%= ren
Did you consider developers from China and are you able to provide the VISA?
Thanks.
On Sep 22, 2012, at 2:55 AM, kenpersel wrote:
> I'm HIRING! work with world's leading #Rubyist (s) #Ruby #Rails Development
> #DC or #Remote #jobs #hiring @LivingSocial
> http://lnkd.in/yHr4zqJust had laun
Hi all
As we all know that rake db:test:prepare effects all the changes from
development database to test database.
But due to one mistake i wish to make development database same as my test
database.
So how can i get effects from test database to development database ?
--
You received this
any one know this topic
On Friday, September 21, 2012 4:49:58 PM UTC+5:30, Fahim Patel wrote:
>
> Hi all
>
> As we all know that rake db:test:prepare effects all the changes from
> development database to test database.
> But due to one mistake i wish to make development database same as my test
Explore https://www.ruby-toolbox.com/
Dheeraj Kumar
On Saturday 22 September 2012 at 2:15 AM, Jammer Jamski wrote:
> Hi All,
>
> I've arrived at the door of Ruby! I'm a complete noob to Ruby and RoR
> and looking for some high level advice on things to look at.
>
> I'm an experienced .NET sy
Mukesh - could you please send your resume / work links to
ken.per...@livingsocial.com and we'll get a call scheduled? Have a great
weekend!
Best,
Ken*Persel* | Living*Social* | Talent*Acquisition *| 202.695.7126 |
www.livingsocial.com
ken.per...@livingsocial.com | http://www.linkedin.co
Wasif - could you send your resume / work links to
ken.per...@livingsocial.com and we'll get a call scheduled? Have a great
weekend!
Best,
Ken*Persel* | Living*Social* | Talent*Acquisition *| 202.695.7126 |
www.livingsocial.com
ken.per...@livingsocial.com | http://www.linkedin.com/in/ken
Agis - could you please send your resume / work links to
ken.per...@livingsocial.com and we'll get a call scheduled? Have a great
weekend!
Best,
Ken*Persel* | Living*Social* | Talent*Acquisition *| 202.695.7126 |
www.livingsocial.com
ken.per...@livingsocial.com | http://www.linkedin.com/
Hi All,
I've arrived at the door of Ruby! I'm a complete noob to Ruby and RoR
and looking for some high level advice on things to look at.
I'm an experienced .NET system architect and PRISM/WPF/C# developer by
day and have picked up a job that basically suits RoR, Postgres set up
over the normal
On Fri, Sep 21, 2012 at 12:42 PM, masta Blasta wrote:
> I'm not going to get into a Mac vs. PC fight here.
I wasn't trying to start a "fight", I just wanted clarification of your
vague but sweeping statements. To help anyone trying to make
their own decision :-)
--
Hassan Schroeder --
Hassan Schroeder wrote in post #1077015:
>
> U. Just out of curiousity, what is a "proper custom PC setup"?
> What limitations on "full open source software availability" does a Mac
> come with?
>
> And what "whole bunch of freedoms" am I currently missing out on? :-)
>
> --
I'm not going to
On Fri, Sep 21, 2012 at 3:34 PM, Tak G. wrote:
> sigh this is becoming a huge hassle. the rest of the developers are
> using nix or a mac. why does it matter if i use a windows or a nix?
>
>
Because RoR on Windows is painful. It just doesn't seem to be supported as
well. You can do it, lots o
On Fri, Sep 21, 2012 at 2:34 PM, Tak G. wrote:
> postgres -D /usr/local/var/postgres
> psql theprojectname
> CREATE ROLE cstarleague PASSWORD 'secret' LOGIN SUPERUSER;
> and then migrate the db
>
This isn't Rails.. it's basic Postgres for 1) Starting the server, 2) using
the commandline tool for
Hassan Schroeder wrote in post #1077008:
> On Fri, Sep 21, 2012 at 11:34 AM, Tak G. wrote:
>
>> i mean i know the very basic, which is to just type in rail s. All i've
>> done with rail is start a web app without a db. I don't know anything
>> about creating a db and then migrating
>
> Then you
On Fri, Sep 21, 2012 at 12:24 PM, masta Blasta wrote:
> Frankly i'm a bit annoyed at Nix/Mac users pretending that development
> on the Mac is so much better. It isn't. Developing on windows is just as
> easy and productive. If anything, it's better because you can have a
> proper custom PC setup
lyosha wrote in post #1076588:
> man.. why does everything is so slow on developing on windows?
It's not. Check your machine and rails configuration. Development
environment will always be slower than production or other environment
that caches models.
>Given enough hardware I'm sure that a Windo
On Fri, Sep 21, 2012 at 11:34 AM, Tak G. wrote:
> i mean i know the very basic, which is to just type in rail s. All i've
> done with rail is start a web app without a db. I don't know anything
> about creating a db and then migrating
Then you need to learn that first.
> I was told to use the
Hassan Schroeder wrote in post #1077004:
> On Fri, Sep 21, 2012 at 11:08 AM, Tak G. wrote:
>
>> Okay, all I am trying to do is get the web app for the project to start.
>
> Are you saying you don't know how to start a Rails app?
>
> Sounds like a basic tutorial would be a good place to begin.
>
>
On Fri, Sep 21, 2012 at 11:08 AM, Tak G. wrote:
> Okay, all I am trying to do is get the web app for the project to start.
Are you saying you don't know how to start a Rails app?
Sounds like a basic tutorial would be a good place to begin.
--
Hassan Schroeder hassan.s
I
On Fri, Sep 21, 2012 at 2:08 PM, Tak G. wrote:
>
>
> Okay, all I am trying to do is get the web app for the project to start.
> i've never done anything with database though which is why i'm kind of
> stuck.
>
> --
>
Is the database started and can you access it using psql.
If the database i
Greg Akins wrote in post #1077000:
> On Fri, Sep 21, 2012 at 1:45 PM, Tak G. wrote:
>
>> So I just got involved in a huge team project with RoR and PostgreSQL.
>> But I can't find anywhere on the internet to find a proper way to put
>> them together. I did find one but it is for iOS :-/
>> http:/
On Fri, Sep 21, 2012 at 12:17 PM, Mirri Kim wrote:
> I won't generally go with that approach:
>
> - Skill.all can get big
> - You're doing 2 queries by default plus the array subtraction
I don't think the two-queries part can be avoided. If Skill.all is
big, maybe something like:
Skill.where
On Fri, Sep 21, 2012 at 1:45 PM, Tak G. wrote:
> So I just got involved in a huge team project with RoR and PostgreSQL.
> But I can't find anywhere on the internet to find a proper way to put
> them together. I did find one but it is for iOS :-/
> http://railscasts.com/episodes/342-migrating-to-
So I just got involved in a huge team project with RoR and PostgreSQL.
But I can't find anywhere on the internet to find a proper way to put
them together. I did find one but it is for iOS :-/
http://railscasts.com/episodes/342-migrating-to-postgresql?view=asciicast
I have them both installed an
On Fri, Sep 21, 2012 at 3:12 AM, roelof wrote:
> def triangle(a, b, c)
> if ((a == b) and (b == c))
> return :equilateral
> if (((a == b) and (b != c)) or ((a != b) and (b == c)))
> return :isosceles
> if ((a !=b) and (b != c))
> return :scalene
> end
>
> But I see this error
For example, you see files called
rails/actionpack/lib/action_controller/base.rb
which adds methods and such to the open module ActionController. What
scope is ActionController in? Is it just called the global scope?
Obviously, there is namespace resolution lookup. And a good example of
this is i
On Fri, Sep 21, 2012 at 5:39 AM, Kashif Umair Liaqat
wrote:
> I want to know that how can I create a blog in rails.
Try Googling for Rails tutorials. A blog is one of the standard
beginner examples. The canonical one, because it helps you learn
Rails (and basic Ruby) so well, actually uses a *
I won't generally go with that approach:
- Skill.all can get big
- You're doing 2 queries by default plus the array subtraction
It's better to just use a scope or a class method on Skill or some service
class in my opinion but for brevity nothing tops that. The results would
(should) be cached an
On Fri, Sep 21, 2012 at 8:54 AM, Werner Laude
wrote:
> This idea
>
> Skill.all - user.skills
>
> is totally new to me..
Time to open up irb or a rails console and play around, e.g.
1.9.3p194 :014 > [1,2,3,4,5] - [1,2,3]
=> [4, 5]
Have fun!
--
Hassan Schroeder hassan.
Am 21.09.2012 um 17:47 schrieb Hassan Schroeder :
> On Fri, Sep 21, 2012 at 8:46 AM, Werner Laude
> wrote:
>
>> can you give me a practical sample..thanks
>
> I just did :-)
This idea
Skill.all - user.skills
is totally new to me..
I will try tonight..ned some air now
Thanks so far
>
>
I have a client located in Miami Lakes, FL looking to hire someone to
interview and technically vet some Lead RoR/CTO candidates they might
want to hire, but don't have the technical ability to do so
themselves, so I'm looking for a very senior RoR developer or CTO/Tech
Lead person with a couple of
On Fri, Sep 21, 2012 at 8:46 AM, Werner Laude
wrote:
> can you give me a practical sample..thanks
I just did :-)
--
Hassan Schroeder hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
You received this message because you are subscribed t
Am 21.09.2012 um 17:40 schrieb Hassan Schroeder :
> On Fri, Sep 21, 2012 at 2:48 AM, Werner
> wrote:
Hi Hassan..
>
>> I have a user and a skill table joined in a SkillUser table. (has many
>> through)
>> Now I try to get all Skills listed which are not already in the join table
>> for user 1
On Fri, Sep 21, 2012 at 2:48 AM, Werner wrote:
> I have a user and a skill table joined in a SkillUser table. (has many
> through)
> Now I try to get all Skills listed which are not already in the join table
> for user 1
Stop thinking in terms of tables and think about your models, e.g.
skill
Thanks,
That solved my problem.
Roelof
Op vrijdag 21 september 2012 09:12:46 UTC+2 schreef roelof het volgende:
>
> Hello,
>
> I now trying to solve this one :
>
> # Triangle Project Code.
>
> # Triangle analyzes the lengths of the sides of a triangle
> # (represented by a, b and c) and retur
Thanks.
On Fri, Sep 21, 2012 at 4:57 PM, Mauro wrote:
> On 21 September 2012 13:16, Mauro wrote:
> > On 21 September 2012 13:07, avinash behera
> wrote:
> >> Will there be any affect on ruby code if we change from ruby to jruby ?
> >
> > I think no, you have to control your gems, if you use jr
Hi John,
On Fri, Sep 21, 2012 at 7:37 AM, John B. wrote:
> Bill -
>
> Thanks so much for your response. I spent a good portion of yesterday on
> google trying to solve this. I was dancing around the solution. I
> appreciate your help.
>
>
You're welcome. And welcome to the Rails community!
Bes
Bill -
Thanks so much for your response. I spent a good portion of yesterday on
google trying to solve this. I was dancing around the solution. I
appreciate your help.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
Hi all,
I am 2nd year B.Tech Student @ IIIT-Hyderabad. I basically love Web Based
Development and I am using Ruby on Rails since an year now. I would love to
apply for an internship opportunity for the coming summers next year. As
most of the companies start recruiting there interns at this time o
I've written gem for automatic building associations for fields_for
helpers. Please, check it out - https://github.com/ka8725/get_or_build
What do you think should it be rails feature?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To p
On 21 September 2012 13:16, Mauro wrote:
> On 21 September 2012 13:07, avinash behera wrote:
>> Will there be any affect on ruby code if we change from ruby to jruby ?
>
> I think no, you have to control your gems, if you use jruby you have to add:
>
> # the javascript engine for execjs gem
> pla
Hi all
As we all know that rake db:test:prepare effects all the changes from
development database to test database.
But due to one mistake i wish to make development database same as my test
database.
So how can i get effects from test database to development database ?
--
You received this
On 21 September 2012 13:07, avinash behera wrote:
> Will there be any affect on ruby code if we change from ruby to jruby ?
I think no, you have to control your gems, if you use jruby you have to add:
# the javascript engine for execjs gem
platforms :jruby do
group :assets do
gem 'therubyr
Will there be any affect on ruby code if we change from ruby to jruby ?
On Fri, Sep 21, 2012 at 4:23 PM, Mauro wrote:
> On 21 September 2012 10:47, Avi wrote:
> > Hello,
> >
> > Currently in my rails application, I am using ruby 1.9.3. There is a
> > requirement for which I need to use jruby.
No man ...
i just use HABM in models and when i fire command in console at that point
third table is created.
And i do nothing manually..
On Friday, September 21, 2012 3:51:41 PM UTC+5:30, Fahim Patel wrote:
>
> I have two models cow and milkman.
> I am using has_and_belongs_to_many in both
On 21 September 2012 10:47, Avi wrote:
> Hello,
>
> Currently in my rails application, I am using ruby 1.9.3. There is a
> requirement for which I need to use jruby.
> If I am using jruby, then I can't use ruby.
> Will there be any affect if I switch from ruby to jruby in my application ?
> Will
I'm using devise for authentication:
In my user model I've do:
def name
"#{first_name} #{last_name}"
end
to have a name method.
After signed in successfully I can use current_user.name.
I want to overwrite name method if the user is guest.
That's the use case:
The guest user signed in succes
Hi pafahim,
When you use HABM association in your models It will not generate the
join table automatically. We have to create manually.
For your issue try to rollback the join table from database.
Thanks & Regards,
VIjay
On Fri, Sep 21, 2012 at 3:51 PM, Fahim Patel wrote:
> I have two
I have two models cow and milkman.
I am using has_and_belongs_to_many in both models .
By mistake i have deleted cows_milkmans table from database.
When i use this command i am getting error
a = Cow.last
a.milkmans # when i fire this command then i am getting error that
cows_milkmans table not
Hallo.
I have a user and a skill table joined in a SkillUser table. (has many
through)
Now I try to get all Skills listed which are not already in the join table
for user 1
In other words: user 1 has entries in the SkillUser table for skill 1 and
2. And I want to get skill 3...to in the res
Hi all,
Hope you will be fine. I want to know that how can I create a blog in
rails. Here is an example blog http://king370.liveblog.com. I want to know
the models and their appropriate associations. Please anybody can help me?
Take a look at the blog first to give the relevant answers.
--
You
hi folks, i wish to know if there's a way to translate the rails guides to
portuguese or others languages. I believe this way we can help community
growing more each day.
i`m really interested to help translate to portuguese and waiting for an
answer if its possible and how.
thanks
--
You re
Where would be the correct place to put nmf and nexe files in the directory
structure of a rails app?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe
I'm having some trouble with getting nested resources working properly from
bespoke XML/JSON in RESTful API. There seems to be some fundamental
problems with the way rails works, which means we may have to write a lot
of bespoke code to get it working, possibly even having to monkey patch
Rail
Hi All,
Kindly help me to sort this out..
I have devise sign up page.
But now I want to integrate multi step registration.
i.e) first, user will enter his/her email pwd and confirmation password.
Will click on Next button where he fills in his personal details and on
clicking Next button will s
Thanks Jim.
On Friday, September 21, 2012 10:47:03 AM UTC+5:30, jim wrote:
>
>
>
> On Fri, Sep 21, 2012 at 2:57 PM, Avi >wrote:
>
>> Is cancan is only used for CRUD operations?
>> Can we use it while navigating a page or any other functionality other
>> than CRUD operations?
>
>
> yep. look at
Hello,
Currently in my rails application, I am using ruby 1.9.3. There is a
requirement for which I need to use jruby.
If I am using jruby, then I can't use ruby.
Will there be any affect if I switch from ruby to jruby in my application ?
Will the rails application behave normally ?
Any code ch
Just for your information, the solution posted on stacked overflow fixed
my problem...
--
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 post to this group, send email to rubyonrails-talk@goog
I repaired because a multi-part form. Add :multipart=> true to my
form_tag.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.c
On Fri, Sep 21, 2012 at 5:12 PM, roelof wrote:
> Hello,
>
> I now trying to solve this one :
>
> # Triangle Project Code.
>
> # Triangle analyzes the lengths of the sides of a triangle
> # (represented by a, b and c) and returns the type of triangle.
> #
> # It returns:
> # :equilateral if all
Hello,
I now trying to solve this one :
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# :equilateral if all sides are equal
# :isoscelesif exactly 2 sides are equal
#
61 matches
Mail list logo