I will try to explain what I look for in My Company when hiring an entry level developer. Maybe that will help.
First, I don't expect you to be able to code at all. If you could write code it wouldn't be entry level. In fact I usually go so far as to disqualify any applicants that "tout" code or education making them right for the job.
Second I look at education. I rule out anyone with a multi-year degree in "coding" or "computer science". Bonuses are giving to people that list relevant "work shops" or "boot camps", so long as there are not too many. The general idea is that I don't want to have to un-train someone, or fight with them about an established policy. They are entry level and thus know nothing about production level code.
Finally, I try to asses attitude and logical thinking ability. For an entry level developer these are far, far more important then any education (for mid and high level devs too) or experience.
The idea candidate shows that they understand that they are just starting off and that they are not there to make sweeping design decisions or restructure the entire code base. They also show a desire to learn and the ability to grasp concepts and "learn on their own". They also should show a backbone. Devs in teams have opinions, and they need to be able to stick up for theirs while at the same time be willing to learn from (and teach) others.
I would never ask for a code sample for an entry level position. If your not "overqualified" then there is no way you could submit to me a good code sample. I would also ask more questions about how you meat deadlines, or do research then about rather you would use an for loop or an each loop. I might use a few words like "Instance Variable" or "Iterator" to see of you have some idea what it means, but probably not.
In summary, it's far more important that you show an ability and willingness to learn how to do things in This Company then any ability your learned in school or on an outside project.