I am rather new to economics in general and to the Neoclassical Growth Model in particular and I was wondering if there was a way to get the Euler equation for consumption without using the Lagrangian multiplier? Assuming no corner solutions, let's say the agent solves $$\max_{c_t, k_t} \sum_{t=0}^{\infty} \beta^t U(c_t)$$ subject to $$c_t + k_{t+1} \leq f(k_t) \\ c_t \geq 0 \quad \forall t \\ k_{t+1} \geq 0 \quad \forall t$$
The Lagrangian is given by $$L = \beta^t [U(c_t) + \lambda_t ( f(k_t)- c_t - k_{t+1})]$$ which can then be solved for the Euler equation $U'(c_t) = \beta U'(c_{t+1})f'(k_{t+1})$.
Why is that if I try to use the tangency condition of the gradient of $U$ and the resource constraint I don't get the same EE? Taking partials with respect to consumption and investment ($\delta =0$ so $k_{t+1}=i_t$)
$\nabla U = \langle \beta^tU'(c_t), 0\rangle$ and
$\nabla RC = \langle -\beta^t, -\beta^t+\beta^{t+1}f'(k_{t+1})\rangle$.
Using tangency I should get $\frac{U'(c_t)}{-1} = \frac{0}{\beta f'(k_{t+1})-1} \Rightarrow U'(c_t) = \beta U'(c_{t})f'(k_{t+1})$. Clearly my time subscript is off. Can someone tell me if my approach is wrong? or if I made a mistake in the algebra? I think the optimizing condition should hold with tangency so its not obvious to me why this approach gives a result different from the Lagrangian.