[Rails] html formatted string displaying only upto specific length

2010-01-06 Thread Subashini Kumar
Hi I have a string str=pHspan style=font-family: impact,chicago;g/spanenrik Lundqvist,gspan style=font-family: georgia,palatino;gh nv span style=font-family: wingdings,zapf dingbats;gnm h fsgfb g/span/spanthe preternaturally handsome Swedish goalie for the New York Rangers, may have been named

[Rails] Render_component plugin installation

2009-10-12 Thread Subashini Kumar
tried to install render_component plugin with: ruby script/plugin install git://github.com/lackac/render_component.git -r rails-edge This generates a directory in vendors/plugin/render_component but it's empty. Please help me -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Random retrieveal from database

2009-09-23 Thread Subashini Kumar
Brijesh Shah wrote: Subashini Kumar wrote: How can i choose some n (n is gonna be fixed )records randomly from a mysql database table from our controller? Use RAND() function in mysql query... select * from TABLE_NAME order by RAND() limit N Yeah !! cool!!! thanks a lot!!! -- Posted

[Rails] collection_text onchange event

2009-09-23 Thread Subashini Kumar
hi, I want to display a drop down list and when i select some option from the drop down list i want to display all the records under that selected category in the SAME PAGE.. eg .. %= collection_select(:question,:subject_id ,@subject, :id, :name) % when i choose a subject i should,

[Rails] page rendering and drop down onchange event

2009-09-23 Thread Subashini Kumar
hi, I want to display a subject drop down list and when i select some option from the drop down list i want to display all the questions under that selected category in the SAME PAGE and also get a form to add new questions in the same page. eg .. %= collection_select(:question,:subject_id

[Rails] Re: collection_text onchange event

2009-09-23 Thread Subashini Kumar
Sijo Kg wrote: Hi Have a look at observe_field http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654 Sijo Hi, i tried like this, View page: %= collection_select(:question,:subject_id ,Subject.all, :id, :name ) % %= observe_field

[Rails] Accessing the instance variable in another method

2009-09-22 Thread Subashini Kumar
Hi, I am new to Rails.I tried developing a basic quiz application.Please help me out in my doubt.Thanks in advance % CODE % class QuizController ApplicationController def index # i have retrieved the first five questions from the database for displaying the #question to user

[Rails] Random retrieveal from database

2009-09-22 Thread Subashini Kumar
How can i choose some n (n is gonna be fixed )records randomly from a mysql database table from our controller? -- Subashini kumar -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google