Symbols vs Strings Discussion
Nice! Some of my upper division CS students struggle with the notion of symbols, and I'll point them this way.
Organising large rails apps is something that I struggle with. I've look at namespacing models but can never get my head around the folder structure and then the different way you have to reference a model in a namespace or scope.
Because of this I avoid it and end up with 50 models in one folder.
I'd be very happy for you to explain how to do this better?
Great video Chris. Would love to see one on relationships such as has_many :through and Polymorphic.
This is a very great episode because help me understand what's happeing under the hood. What I didn't know and I haven't hear before was what you mention at 7:18:
the last set of arguments to any function can be a hash and you don't have to specify the curly braces, they're optional
I have used that in my methods but I've never new that this could be the last argument for any function. Do you have any source to read more about this topic?
I'm still finding this a bit confusing because it seems like you're comparing apples to orange. The way I see it, which is why Im' confused is that a symbol represents something.
:set_project symbol. It represents/contains the method that was defines. Where
Project was successfully created is a string and what is being represented by the notice: symbol. Am I understanding this wrong. Please clarify when you get the chance.
Amazing video!! Thank you so much Chris for these basic/general courses - more of these would be incredile!
So the confusion that I have around all this is where is the link between
before_action :set_project and
def set_project? Like how does it know that the symbol :set_project is referring to the method set_project defined elsewhere?
[url=https://www.faxlistb.com/egypt-fax-broadcast-list/]Buy Egypt Fax List[/url]
BulgariaFaxList Sibling printers have gained notoriety for "[url=https://www.faxlistb.com/bulgaria-fax-broadcast-list/Bulgaria Fax List[/url]" development, dependability and worth. With all the alternatives available, finding the one you need can be marvelous. Before taking off to the stores doing investigate on the Internet, you should set aside some effort to drill down the capacities you need your printer to do. At that point you will be sure that your last buy won't prompt purchaser's regret. Underneath we have rattled off three Brother printers to assist you with narrowing down your decision.
Accessible at a sensible cost, the Brother Wireless All-in-One printer offers a few capacities in a single unit. This remote system perfect model has duplicating, faxing, and checking abilities. This printer offers great quality at sensible rates.
@chris, it looks like you have some bots getting into your comment section. Maybe add a video how you would try to stop this?
I've had the same stuff on my bigger websites. Even after the captcha and invisible honeypots didn't help, I created a validate action that checks for forbidden keywords in the posted comment and try to block them off this way...
After that some bots still got in. What I did then was check if a user was logged in during the post of the comment. If not, the comment would have to be approved by a moderator. Until now (about 6 months) no spam got to any of my customers, and I refused about 20 comments.