Hi there,
i want to use collection_check_boxes (in rails 4) but i am a little bit
stuck... okay, first things first:
i have 2 models:
class Supervisioncategory ActiveRecord::Base
has_many :phonenotes
end
and
class Phonenote
Am 2013-12-03 18:42, schrieb Walter Lee Davis:
View source as generated by Rails in your browser, and see what these
checkboxes look like in HTML. That's where I would start debugging
this. My guess is that you need these to be supervisioncategory_ids,
since that's what the b/t is saying the
Am 2013-12-03 19:26, schrieb Walter Lee Davis:
Okay, that looks right, as far as it goes. Now what happens in your
console if you find a phonenote, and ask for its supervisions?
p = Phonenote.first
p.supervisions
# error, or array?
2.0.0-p353 :002 p.supervisions
Am 2013-12-03 19:46, schrieb Ronny Fauth:
Am 2013-12-03 19:26, schrieb Walter Lee Davis:
Okay, that looks right, as far as it goes. Now what happens in your
console if you find a phonenote, and ask for its supervisions?
p = Phonenote.first
p.supervisions
# error
Matthew MacLeod schrieb:
On Jun 18, 7:06 pm, Ronny Fauth jadefalk...@imperium-noctem.de
wrote:
name = upload['datafile'].original_filename
doesn't work for me
Have you made sure to set :enctype = 'multipart/form-data' in your
form?
-Matt
i _thought_ i had, but the syntax
Hi, does someone has an tutorial for file-upload that works with rails
2.3.2 and that DON'T stores data in a database?
I want to:
- upload a text-file
- do something with the file
- put a link for download on the page
Regards
--~--~-~--~~~---~--~~
You received
Dharmdip Rathod schrieb:
Hi , Ronny
For file uploading just refer this link .
http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm
Thanks ,
Dharmdip
i have found this tut, but like i said:
name = upload['datafile'].original_filename
doesn't work for me
7 matches
Mail list logo