[Rails] How to differentiate the form_for with respect to routes

2013-05-14 Thread Nike Mike
I have my devise routes as get "/signup/employer" => "devise/registrations#new" ,:as=>:useremp get "/signup/contractor" => "devise/registrations#new",:as=> :usercontract Both routes points to controller -> registrations and action -> new.When i hit the URL /signup/employer then my form_for should

[Rails] How to use selenium combined with cucumber on rails

2013-05-14 Thread Nike Mike
How to combine cucumber features with selenium that runs on rails 3.2 -- 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 em

[Rails] Create routes dynamically

2012-04-30 Thread Nike Mike
How to create routes dynamically on rails 3. -- 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.com. To unsubscribe from this grou

[Rails] receive email and store on the database

2012-04-19 Thread Nike Mike
I have developed a messaging system on rails3.As per the requirements, the incoming mails will contains the messages and that needs to be stored on the on the DB, with respect to the email id users. Please help on this -- Posted via http://www.ruby-forum.com/. -- You received this message beca

[Rails] Re: Ajax dialogs with jquery

2011-12-05 Thread Nike Mike
Thanks its working -- 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.com. To unsubscribe from this group, send email to rubyonra

[Rails] Ajax dialogs with jquery

2011-12-04 Thread Nike Mike
Hi, In my application, we are calling a dialog box to submit a value through ajax.After submit how to show the welcome message in the same dialog. In my views file at the first the dialog block is in hidden mode.On clicking an anchor we are displaying the dialog block form.Through Ajax we are su

[Rails] Jquery dialog

2011-11-18 Thread Nike Mike
Hi, i had a index page with url as www.exa,com/users/jude.In that page i want to submit a from which appears from popup dialog.The action of the popup is going to send_message,Whenever i submits, via ajax the data gets stored but not the page gets reflected. My controller def send_message

[Rails] how to use mutiple yields

2011-11-11 Thread Nike Mike
In my layout, i have mutiple layouts. Is there any way to reduce to a single line.Currently my layout likes this <%=yield :head%> <%=yield :foot%> <%=yield :bottom%> How to call this in a single method -- Posted via http://www.ruby-forum.com/. -- You received this message because you are su

[Rails] custom copyright text to ruby file automatically

2011-10-07 Thread Nike Mike
How to automate the copyright text for each newly created files in ruby projects or with rails framework. -- 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 rub

[Rails] Rspec in rails console

2011-08-14 Thread Nike Mike
Can we able to use rspec in rails console -- 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.com. To unsubscribe from this group,

[Rails] mobile applications in ruby on rails

2010-08-15 Thread Nike Mike
How to create mobile applications for android phones in ruby on rails. -- 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-t...@googlegroups.com. To u

[Rails] Re: Re: Ruby on rails and android

2010-07-07 Thread Nike Mike
shyam mohan wrote: > Hi alll... > simmiler question i also want to ask > How to use Rails for android application development...? > Is there any tool for that...like iphone application development? > > Regards > Shyam > +91-97161-89650 > http://shyam.heroku.com > > > > On Thu, Jul 8,

[Rails] Ruby on rails and android

2010-07-07 Thread Nike Mike
How to develop rails application in android mobile applications -- 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-t...@googlegroups.com. To unsubscr

[Rails] Content_for & Capture helper

2010-04-30 Thread Nike Mike
Hi, Whether content_for and capture helpers will work on ajax updates or in ajax pagination. Please help us. -- 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 t

[Rails] Layouts in popup window

2010-04-28 Thread Nike Mike
How to apply layouts in pop up windows -- 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-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Nested routes problems

2009-11-09 Thread Nike Mike
Hi i am using nested resources in my application like this map.resources :forums do |forum| forum.resources :topics do |topic| topic.resources :posts end end while i am submitting a from with url like this http://localhost:3000/forums/1/topics/new i am facing the problem "Onl

[Rails] Re: Will paginate is an API ?

2009-10-27 Thread Nike Mike
Frederick Cheung wrote: > On Oct 27, 11:23�am, Nike Mike > wrote: >> Please suggest whether will paginate is an API or not? > > Well if you define an API as an interface that one piece of software > defines to like other pieces of software interact with it then I > sup

[Rails] Will paginate is an API ?

2009-10-27 Thread Nike Mike
Please suggest whether will paginate is an API or not? -- 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 ruby

[Rails] Functional test problem in rails 2.2.2

2009-10-21 Thread Nike Mike
Hi, I am doing functional test for my application, when i created a method in test folder test "valid_login_and_redirect" do post :authenticate,:user=> {:username=>'admin',:password=>'admin'} assert session[:user] assert_response :redirect end i am getting the error as valid_log

[Rails] Is dynamic database connection available in ROR

2009-10-20 Thread Nike Mike
Hi, Whether dynamic database connection is available in Ruby on Rails -- 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, se

[Rails] How to write cycle helper for this code

2009-06-18 Thread Nike Mike
Headline tortor sit amet tellus interdum Headline tortor sit amet tellus interdum Headline tortor sit amet tellus interdum Headline sit amet tellus interdum -- Posted via http://www.ruby-forum.com/. --~--~-~-

[Rails] Prompt option not available in rails date helper

2009-06-16 Thread Nike Mike
Hi prompt option is not available in rails 2.2.but in api.rubyonrails it hazs mentioned it is there.But its not working. date_select("post", "written_on", :prompt=>{:day=>'Select day', :month=>'Select month', :year=>'Select year'}) Please give some idea -- Posted via http://www.ruby-forum.com/.

[Rails] Module: ActionView::Helpers::DateHelper

2009-06-11 Thread Nike Mike
hi i am using date_select helper for displaying month day and year.I am trying to show month and year by the options of the helper as <%=date_select( "post", "written_on", :discard_day => true)%> But i am getting error as undefined method `styled_input' for # Please help me -- Posted via http:/

[Rails] Declare global variable in views

2009-05-05 Thread Nike Mike
how to declare a variable globally in views without writing in controller,model or in config -- 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

[Rails] Re: Sql query vs Ruby methods

2009-04-22 Thread Nike Mike
Dmitry Sokurenko wrote: > Really both quieries look crazy, and will perform poorly on any > realistic dataset. > > I guess Person is a subclass of a User, so if you are using STI just > try: > > User.all(:conditions => "type != > 'Person'", :limit=>5, :order=>'created_at DESC') > > Dmitry Than

[Rails] Sql query vs Ruby methods

2009-04-22 Thread Nike Mike
In am using the following code in my application,both the applications execute the same result.First one executes fastly than the second one,How can i modify the second one since it is fetching all the values, from there it is limiting 5 rather than the first one User.all.find(:all,:conditions=>

[Rails] Date Time format in Ruby

2009-04-21 Thread Nike Mike
Can anyone give a suggestion so that i can able to format the date as like this 3th - 5th June 2009 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

[Rails] Locals in render partials

2009-04-02 Thread Nike Mike
In render partials can we pass arrays like this a=[1,2,3] b=[5,6,7] c << a << b render :partial=>'',:locals=>{:c=>c} -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Monkey Patch

2009-03-09 Thread Nike Mike
Pls explain what is meant by monkey patch & what is the difference betwwen nil and false -- 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

[Rails] Re: Image Crop

2009-03-06 Thread Nike Mike
Alex Wayne wrote: > Dustin wrote: >> I want to make a program that will be able to take an image file and >> crop a square at a given coordinate value (X,Y). >> >> I would tell it the X,Y and the size of the crop ie. 350x350. The X,Y >> would be the center of the newly created image. >> >> Tha

[Rails] how to use benchmark helper

2009-02-20 Thread Nike Mike
How to use bench mark helper in app.I have seen that in http://api.rubyonrails.org/classes/ActionView/Helpers/BenchmarkHelper.html#M001582 but i didnt get how to do.Please help -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this messa

[Rails] Re: Check the performance of helpers

2009-02-19 Thread Nike Mike
> ...and if you're doing that, you probably need to look into some > pagination, not the > performance implications of content_tag. > > --Matt Jones > > On Feb 19, 5:46�am, Nike Mike Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Check the performance of helpers

2009-02-19 Thread Nike Mike
how to check the performance of helpers. For ex if am using content_tag for creating li instead of writing directly.I want to check how much time content_tag will take time to excute as -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You receive

[Rails] Plugin to check the application

2009-02-19 Thread Nike Mike
Is there any plugin to check how many erb files are in views & rb files in controllers,models * helpers -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Problem with my rails 2.2.2

2009-01-13 Thread Nike Mike
I have installed rails 2.2.2.when i created my rails project with version 2.2.2 its throwing error Missing the Rails 2.2.2 gem. Please `gem install -v=2.2.2 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM

[Rails] Re: RoR 2.2.2 and MySQL -- HELP

2009-01-08 Thread Nike Mike
Frederick Cheung wrote: > On 7 Jan 2009, at 22:06, jabauer wrote: > >> dlsym(0x2727d10, Init_mysql): symbol not found - /usr/local/lib/ruby/ >> gems/1.8/gems/mysql-2.7/lib/mysql.bundle >> >> I don't know why it's looking for mysql in /usr/local/lib/ruby when I >> put it in /usr/local/mysql >> >

[Rails] rails/info/properties

2008-12-30 Thread Nike Mike
hi i had a doubt while creating a new rails project we are getting the basic welcome message as Welcome aboard You’re riding Ruby on Rails! About your application’s environment on clicking the about ur applications we are getting the full information about the gem version,rails path etc.I have

[Rails] is this a localised one

2008-12-28 Thread Nike Mike
I have seen redmine code whats the use of having <%=l(:label_user_plural)%> .whether l is onlu for localised -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: javascript_include within single views

2008-12-12 Thread Nike Mike
David wrote: > so would the following be redundant then? > > <% content_for :javascript do %> > <%= javascript_tag "new javascript function" %> > <% end %> > > assuming i have <%= yield :javascript %> > > in my main layout file. Please study this tutorail http://railscasts.com/episodes/8-la

[Rails] Re: auto_complete with no of occurance

2008-12-11 Thread Nike Mike
just follow this for auto complete http://genlinux.blogspot.com/2008/07/prototype-ui-autocomplete-ajax-using.html -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] Re: auto_complete with no of occurance

2008-12-10 Thread Nike Mike
Ruhul Amin wrote: > Hi, >I have implemented auto complete text box by using auto_complete > plugins in rails 2 application. >Can I show the number of occurence of the text those display in the >list drived by auto_complete pugin? >just like google. >as example if I type "a" the

[Rails] Ubuntu 8.10 is good for rails

2008-12-10 Thread Nike Mike
whether ubuntu 8.10 is good for working with rails 2.0.2 with ruby 1.8.6 .since by default ubuntu 8.10 is having ruby 1.8.7 and 1.9.so applications created using ruby 1.8.6 is facing problem with ruby version 1.8.7 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~--

[Rails] Re: Account verification through E-mail

2008-12-10 Thread Nike Mike
Indu RS wrote: > Hello everyone > Please give suggestion about how to implement an email verification > system? By > this I mean, a user subscribes(sign up) receives an email > with a link and has to follow that link to change the status of the user > ,only after that the user can login. try to

[Rails] I am facing problem when i am running my rails app

2008-12-08 Thread Nike Mike
hi have upgraded my version from 2.0.2 to 2.2.2.but the application which i have created from rails 2.0.2 is not getting started. Throwing ruby script/server /usr/local/lib/site_ruby/1.8/rubygems.rb:149:in `activate': can't activate activesupport (= 2.2.2, runtime), already activated activesupp