hey tbuehlmann, somewhat related question -- in my controller I have "MyApp::Engine.routes.url_helpers.product_url(object)" and this works. However, in rspec tests with a dummy app, this method product_url does not exist. Any pointers as to where I should look to fix this?
Hey, I am trying to test my extension with rspec. I have a rake task which builds a dummy app on which tests should run. But I don't understand how to tell rspec that I want to run my tests in the context of this dummy app. Any hints?
I am using Rails app's secret_key_base string, and in the place where I looked into it, the code takes chars 0..31 from it. Is this needed, or I can just use the whole content of secret_key_base regardless of size?
Inside, yes, (regarding my Devise question a bit above), by "manually" I mean I need some low-level function that just takes email and password and returns true/false if password matches, without any other magic
Right, sure. Good points. Actually, I thought that I could use JWT to encrypt or sign the user's username in it, and then just read it on the server on incoming requests, and thus avoid the need to use server-side sessions at all. But I just realized this won't work, since there *is* data that needs to be put into user session, and I don't intend to use the cookie for data
sure, sure. Yeah, I can without a problem return the token in a header and data of the user whose login succeeded via JSON response
geggam, of course it makes new lines. The \n is just the format used for printing out the value to the screen. And keep in mind that if you want to use this in HTML context, you'll need \n<br>, not just \n