Ruby on Rails Monday, July 30, 2012


 I have google I found that by specifying `rails _2.3.10_  new demo`  will help but is not working instead it creating \


the 'new' command did not exists in rails before rails 3, back then there was a different script for  generators

script/generate controller

is now 

rails g controller


so back then the 'rails' script was only for making apps, now it accepts commands like generate, destroy and more. If you want to see who to use it in rails 3 check out this link
 

--
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 from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ruby on Rails


Hi All,

I have one question below:

How can I create app by specifying the rails version.

for example I have local rails gem versions (2.3.5, and 2.3.10) how I can create rails app => 2.3.10 but default rails gem point to 2.3.5.

 I have google I found that by specifying `rails _2.3.10_  new demo`  will help but is not working instead it creating new app in the name   "_2.3.10_"


Can any help on the same.

Thanks,
Senthil Srinivasan

--
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 from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/A5iPlNN8nl0J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ruby on Rails

Is there something I need to do to the data_type to make it recognize it as a method?
wrong number of arguments (3 for 0)
    <div class="control-group">  48:             <%= f.label question.name.to_sym, :class => 'control-label' %>  49:             <div class="controls">  50:               <%= question.data_type "person[person_question_ids][]", question.id, nil %> - <%= ' allergic to shellfish?' %>  51:             </div>  52:           </div>

On Mon, Jul 30, 2012 at 9:17 PM, Dheeraj Kumar <a.dheeraj.kumar@gmail.com> wrote:
Of course! Are you encountering any problems with that?


Dheeraj Kumar

On Tuesday 31 July 2012 at 3:31 AM, Me wrote:

Can you do f.send in a form?  I have questions and the data type stored in a db.

<% Question.all.each do |question| %>
          <div class="control-group">
            <%= f.send(:label, question.name), :class => 'control-label' %>
            <div class="controls">
              <%= f.send(question.data_type.to_sym, :question, :name) %> - <%= ' allergic to shellfish?' %>
            </div>
          </div>
        
        <% end %>

--
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 from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/6K79gq2KHPYJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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 from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
"In matters of style, swim with the current; in matters of principle, stand like a rock." 
Thomas Jefferson

--
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 from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.