Displaying 4 results from an estimated 4 matches for "partner_id".
Did you mean:
artnr_id
2006 Mar 19
3
String keys in hash
...url. The url
looks like:
http://address.com?id=dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7&some_other_parameters
In a controller, I''ve created a hash where the keys are the ids:
@codes = {
''dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7'' =>
{:partner_id => 0,
:partner_name => ''sth'',
:page_number => 1},
...
}
Then i do:
poll_id = ''"'' + params[''id''] + ''"''
The problem is, @codes[poll_id] returns nil.
Otherwise, @codes[&qu...
2009 Feb 09
2
how to get form parameters while using fields_for with nested attributes
hi all..
i am trying to use *fields_for* to get and save nested attributes in a form.
i have a ''Partner'' model associated with an ''Address'' model.
partner has_many :addresses
although the form is displaying fine, but on submitting it the following
error is shown:
*can''t convert HashWithIndifferentAccess into Array*
on this line:
*@partner =
2007 Oct 11
0
display problem with to_csv
...9;''' as
''User 3'',
'''' as ''User 4'','''' as''Web Page''
FROM `edia_user_contacts`, edia_members m, edia_countries c
WHERE m.id=''#{session[:member_id]}'' and user_member_id in (select
partner_id from
edia_member_partners where company_id = ''#{session[:member_id]}'') and
c.id=`address_country`")
respond_to do |wants|
wants.csv do
render :text => @report_data.to_csv
response.headers[''Content-Type''] = ''text/csv; charset=iso-8859...
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'',