I tried this and got an error.
My stuff was based on this website -
http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm.
I wanted a photo stored in images/user-id/ whereas this only uses
images/. So if I remove the user-id directory, and do this, I still
get an empty file.
Thanks
MaD,
not sure if you are being funny or very clever.
I raised this problem with the code in a previous post (search for !
norricorp) and got no replies so I thought a shorter post may attract
some useful answers.
So, if you want to have a look at my earlier post and give an answer,
it would
Uploading image via web page. Create the new file but file is zero
length.
Any ideas where I am going wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
I am new to rails and am stuck on the above.
I have used a mixture of code from the agile web dev with rails book
and what I have found with google.
I realise there are easier ways to do this with various plugins but I
would be interested to know why my code does not work.
The code runs and a
Now I get it.
The association name is the name used for the object. And I had the
field name and the association which I had not realised but a least it
emphasises the point.
And by assigning the object to the this, I can then display values for
the referred object. So my code is now
class
I am new to rails and have got very confused with the above. It was
working and then I made changes and it has gone downhill from there.
And I was not taking regular backups
I have moved slightly outside of the conventions but it is not unknown
for a record type to be refered in another
6 matches
Mail list logo