similar to: display problem with to_csv

Displaying 20 results from an estimated 200 matches similar to: "display problem with to_csv"

2007 Oct 16
11
how to arrange the field in excel by using to_csv
Hi all, i am exporting the file by using to_csv, but its coming as unordered rather than my expected output, if i check in the database, its working fine, but in the excel sheet it shows in the unordered,so please let me knoe, how to show orderly in the excel sheet by using to_csv. @report_data=EdiaUserContact.find_by_sql( "SELECT '''' as ''Title'',
2007 Feb 04
0
Very strange observe_form problem
I am doig something very simple here and this is not working correctly. So any help is greatly appreciated. I ahve this code in my template: <% form_for :company_branch, @company_branch, :html => {:id => "company_branch_form"} do |f| %> <%= f.text_field :street1 %> <%= f.text_field :street2 %> <% end %> <%= observe_form("company_branch_form",
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one (and other relationship identifiers). I have read the RDoc and the agile book many times about this and I think i still see it backwards. Let me outline my app so you have an understanding... I have 2 tables: Schools { id, school_name, address_id } and Addresses { street1, street2, city, state, zip, country } *** this
2007 Sep 10
0
to_csv svn is not working
Hi, I am trying to install the to_csv plugin by using this http://svn.integralserver.com/plugins/to_csv path. but this svn is not working, is there any other alternative svn is there, if its please let me know as soon as possible. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2009 Feb 26
1
composed_of, aggregate object isn't saved
I am relatively new to rails and I cannot figure out what is going on here. I am using the composed_of method in an ActiveRecord class to create two aggregate properties: shipping_address and billing_address. The object properties are getting populated from the form and validation is working - no problem. When I call order.save, though, everything is being saved except the address fields. I am not
2014 Apr 11
0
Rails 4.1 activerecord_relation conversion to array problem
After I upgraded from rails 3.2 to 4.1 I am getting this error below. I researched that Rails 4.1 requires a conversion of an activerecord_relation to an array using to_a. I did use to_a but looks like rails is doing a select count behind the scenes. Do you know how to fix this? def index order_type = params[:order_type] @oh = OrderHeader.select("orders_header.*, users.username,
2008 Apr 24
3
Dynamically Naming a Variable
Hello, I would like to dynamically name a variable... for example, in my program, I iterate over a SQL query that gives me ''displayname'', ''phone_office'', and ''phone_mobile'' (in the actual query there are many more columns). For each row in the results, I want to create an array with [0]=''phone_office'' and
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There, I''m trying to user fields_for inside a form_tag, but i can''t catch it on my controller. I just take some html code off to makes it easy to read my view... i''m using campuses_path(current_church, @campus) instead form_for @campus, because my route is like resources :campuses, :path => ":church/campuses" <%= form_tag
2006 Apr 04
5
Database usage technique -- user-specified fields
Hello folks- In one particular app, it would be useful for the customers to be able to specify the significance (and presence) of fields. For example, consider a CONTACTs database. User 1 wants to have phone1, phone2, phone3, and User 2 wants to have 4 address fields. Generically, this could be done by having a CONTACT with, say, 10 strings, 10 integers, etc. The user''s account
2005 Oct 07
2
Some Ruby code help?
Hi, This isn''t related to Rails itself, but rather to Ruby. I''m trying to import a file into a database. The fields are separated by a ''|''. Everything seems to work fine, but after 64 rows are inserted, it starts mangling the field values. Would you take a look at the following code? require ''mysql'' def capitalize(str)
2012 Oct 17
6
NoMethodError (undefined method `service_options' for nil:NilClass)
hi i am using rails 2.3.4 and i am facing "no method error" there is possibility to not find method but my question is - is there possibility to error occurred because of empty table? or error in another controller or helper? error trace: Processing QuoteRequestsController#create (for 127.0.0.1 at 2012-10-17 16:07:34) [POST] Parameters:
2007 Aug 10
0
Wine release 0.9.43
This is release 0.9.43 of Wine, a free implementation of Windows on Unix. What's new in this release: - Direct3D support on top of WGL instead of GLX for better portability. - Many DirectSound fixes. - Still more gdiplus functions. - Many crypt32 improvements. - Lots of bug fixes. Because of lags created by using mirrors, this message may reach you before the release is available
2007 Jan 16
2
RESTful routes and Mime::Type
Hi all I''m using RESTful routes combined with the to_csv plugin and would like to know if there''s a nicer way of generating a link to fetch the CSV file than just making a hard link. This is what I use for the moment (and it works btw): <%= link_to("Export as CSV","/companies.csv") -%> I would expect the link helper to have something like
2007 Feb 16
0
Wine release 0.9.31
This is release 0.9.31 of Wine, a free implementation of Windows on Unix. What's new in this release: - Many Direct3D fixes and performance improvements. - Several new comctl32 test cases. - IDL compiler improvements. - More OLE32 marshalling fixes. - Lots of bug fixes. Because of lags created by using mirrors, this message may reach you before the release is available at the
2004 Aug 27
0
Asterisk Assistants Custom Icon
I think I need to clarify what I meant by custom icon for the Asterisk Assistants in my earlier posting. On the Mac an Assistant is what the Windoze world calls a Wizard and there is a generic icon for it - the front of a dinner suit with bow tie, the one you can see on the Wiki. However, many of Apple's own assistants have a little mark in the lower right corner of the generic icon which
2004 Aug 29
0
Asterisk Assistants for Linux or Windoze???
RE: [Asterisk-Users] Are there any graphic designers on this list? Mark Paterson wrote: >Is there an Asterisk Assistant for linux or windows? It wouldn't make sense to create Asterisk Assistants for Windoze (it'd probably be called Asterisk Wizards, btw) because Asterisk doesn't run on Windoze. As for Linux, we are currently looking into that. The Assistants are built using the
2016 Mar 18
0
classicupgrade migration issues
On 18/03/16 14:31, Sonic wrote: > On Mon, Mar 7, 2016 at 4:38 PM, Andrew Bartlett <abartlet at samba.org> wrote: >> Also just check you have the unix users and groups that you are trying >> to upgrade. > Do the mapped unix groups need to be added to the new host before > attempting the upgrade? There is nothing in the docs regarding that. No, I am sure you don't
2006 Jan 17
6
An object that initializes multiple objects?
Hi, Something that I have noticed is that every class that inherits from ActiveRecord::Base has a database table of its own. However what if I don''t want a class to have its own table, but to actually serve as a proxy to initialize other entries? For instance as an example, let''s have a form with the fields for "student name", "student id number",
2016 Mar 18
0
classicupgrade migration issues
On Fri, 2016-03-18 at 10:31 -0400, Sonic wrote: > On Mon, Mar 7, 2016 at 4:38 PM, Andrew Bartlett <abartlet at samba.org> > wrote: > > Also just check you have the unix users and groups that you are > > trying > > to upgrade. > > Do the mapped unix groups need to be added to the new host before > attempting the upgrade? There is nothing in the docs regarding
2004 Aug 27
2
Are there any graphic designers on this list?
Hi I had asked for some help with the Asterisk Assistants http://www.voip-info.org/tiki-index.php?page=Asterisk+Assistants+for+MacOSX and many have offered assistance with translations which I am grateful for and like to say thank you again. However, there hasn't been a single response from a graphic designer to offer help with a custom icon. Are there any graphic designers on this list at