hi, i''m using solar server in my app, in my model class Resume < ActiveRecord::Base require ''rexml/document'' include REXML acts_as_solr :fields => [:firstname, :lastname] end but while reindexing ,having the following error Requiring REXML Clearing index for Resume... rake aborted! Couldn''t connect to the Solr server at http://127.0.0.1:8982/solr. undefined method `closed?'' for nil:NilClass, can anyone help me -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Feb 6, 2011 at 9:32 PM, loganathan sellappa <loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Requiring REXML > Clearing index for Resume... > rake aborted! > Couldn''t connect to the Solr server at http://127.0.0.1:8982/solr. undefined > method `closed?'' for nil:NilClass,You need to run this with --trace and look at the stack trace; that "couldn''t connect" error message is very misleading :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Can you point a browser to http://127.0.0.1:8982/solr ? Normally solr is set up at 8983, do you have a typo there? Also, if you are just starting with solr, I''d recommend the rsolr gem instead. It is actively being maintained. On Mon, Feb 7, 2011 at 3:52 PM, Hassan Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Feb 6, 2011 at 9:32 PM, loganathan sellappa > <loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Requiring REXML >> Clearing index for Resume... >> rake aborted! >> Couldn''t connect to the Solr server at http://127.0.0.1:8982/solr. undefined >> method `closed?'' for nil:NilClass, > > You need to run this with --trace and look at the stack trace; that > "couldn''t connect" error message is very misleading :-) > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, i usen sunspot instead of solar.... -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, i used sunspot instead of solar....>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, By attachment_fu i stored pdf file...now i want to view it through view file ,can anybody help me -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi all, with following fields apigroup_name=production ------> (single table) loginid=43 email=test-J0of1frlU80@public.gmane.org clientapp= ActiveRecord::Base.connection.execute("SELECT `sdm_users`.`loginid`,`sdm_users`.id,`sdm_users`.`email`,`api_groups`.`name`,`api_groups`.`is_autokey_generate`,`api_groups`.`id` FROM `sdm_users`,`api_groups` WHERE `sdm_users`.`loginid` =''#{loginid}'' && `sdm_users`.`status` = true && `api_groups`.`name`= (''#{apigroup_name}'')") By the above query i can retrieve all fields from db, What i want to do now is to apigroup_name=["production","marketing"] ------> (multiple table) loginid=43 email=test-J0of1frlU80@public.gmane.org want to retrieve all the fields from db, clientapp= ActiveRecord::Base.connection.execute("SELECT `sdm_users`.`loginid`,`sdm_users`.id,`sdm_users`.`email`,`api_groups`.`name`,`api_groups`.`is_autokey_generate`,`api_groups`.`id` FROM `sdm_users`,`api_groups` WHERE `sdm_users`.`loginid` =''#{loginid}'' && `sdm_users`.`status` = true && `api_groups`.`name` IN (''#{apigroup_name}'')") it is not working can anybody help me -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > clientapp= ActiveRecord::Base.connection.execute("SELECT `sdm_users`.`loginid`,`sdm_users`.id,`sdm_users`.`email`,`api_groups`.`name`,`api_groups`.`is_autokey_generate`,`api_groups`.`id` FROM `sdm_users`,`api_groups` WHERE `sdm_users`.`loginid` =''#{loginid}'' && `sdm_users`.`status` = true && `api_groups`.`name` IN (''#{apigroup_name}'')") > > it is not working can anybody help meYour in clause needs to look like in (''value1'', ''value2'') But why use such a low level api when you could use something much nicer? Fred> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi all, array=["api","api2"] array.join('','') i get ''''api,api2" wat i want is ''api'',''api2'' how can i get it -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
a little hackish but "''#{array.join(''\'',\'''')}''" or array.join('','').inspect.gsub(/\[\]/, '''') On Thu, Feb 17, 2011 at 12:55 PM, loganathan sellappa <loganathan.ms@ gmail.com> wrote:> Hi all, > > array=["api","api2"] > array.join('','') > i get ''''api,api2" > wat i want is ''api'',''api2'' > > > > how can i get it > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Can''t try it out because I can''t reach my development machine and I did not need such behavior but intuitively I would try "''" + array.join("'',''") + "''" it is " followed by '' for opening and vice versa for closing. The '' in the resulting string at the beginning and the end had to be added manually by adding "''". HTH Norbert Top posted from android Am 17.02.2011 05:55 schrieb "loganathan sellappa" <loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Hi all, > > array=["api","api2"] > array.join('','') > i get ''''api,api2" > wat i want is ''api'',''api2'' > > > > how can i get it > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email torubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 17 February 2011 04:55, loganathan sellappa <loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> array=["api","api2"] > wat i want is ''api'',''api2'' > how can i get itarray.map{|e| "''#{e}''"}.join('','') -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks lot,its works well -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi all, In my controller, def reg_app a=ApiGroup.find_by_name(params[:id]) b=a.client_applications @clientapp=[] @key=[] @service_profile=[] if !b.nil? for i in 0...b.length do h=b[i].keys @key<<h[0].key @clientapp<<b[i].name @service_profile<<h[0].service_profile_id end render :update do |page| page.hide ''flash_notice111'' page.replace ''update_apigroup1'', :partial => ''capp'' end else render :update do |page| page.replace ''update_apigroup1'', :partial => ''layouts/no_permissions'' end end end in my view <table> <% for i in 0...-ceH6hkCchWXxW3HTFqXuHg@public.gmane.org do %> <tr><td><%= @clientapp[i]%></td> <td><%= @key[i] %></td> <td><%= @service_profile[i] %></td> <%end%> </table> my output: testapp 355ff577d2dfdb2a2425cdf89bd9f79d 1 app2 63d1d5dfa4a461ca71eacf8ef5aa4cf4 1 app3 141d17a11e5302e8f0ea2970b3244fae 1 but i want testapp 355ff577d2dfdb2a2425cdf89bd9f79d 1in 1st page app2 63d1d5dfa4a461ca71eacf8ef5aa4cf4 1in 2nd page i want to use ajax pagination,how can i do it for this -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.