> "The action 'posts' could not be found for UsersController"
http://localhost:3000/users/posts
routes your request to UsersController#posts, but method 'posts' is not
there.
Add 'posts' method to UsersController, and your problem is solved.
http://blog.eugen.co
--
Posted via http://www
What does
rails -v
tell you ?
Also, try running
rails new app1 --ruby /path/to/your/matz_ruby
Also, try to create different gemsets with rvm and run with different
version of rails/ruby. Does it help ?
http://blog.eugen.co
--
Posted via http://www.ruby-forum.com/.
--
You received th
> Is this normal? Is the coffeescript compiler just a pure "yes/no"
> syntax checker? If so... I really don't think I can use it. I really
> want my tools to help me out and give me good feedback.
I don't think coffeescript is a yes/no compiler. On their webpage
http://jashkenas.github.com/coffee-
> Was working yesterday and now doing this.
Probably yesterday you installed rvm and switched to rvm 1.9.2 with new
rails 3. When you logged in today your rvm, it used as default system's
ruby which contains rails 2.x.
Use this command to make your ruby 1.9.2 + rails3 environment default
one for r
Mechanize is a great gem to write 'automate like' tasks like yours.
Maybe this link can help
http://tenderlovemaking.com/2008/02/26/automated-youtube-uploads/
http://blog.eugen.co
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Goo
>"The subcomments on the first comments subcomments"
>
>"the subcomments on the first comment and has no effect on it's own
>subcomments"
>
lol :)
In jquery there is nice method toggle.
.toggle( showOrHide )
showOrHideA Boolean indicating whether to show or hide the elements.
With no paramet
You can find a lot of exercises here
http://www.rubyquiz.com/
Usually you find problem explanation there, then in plain ruby, people
submit their solutions. This is an absolutely great source to learn ruby
language without rails.
On amazon there is a book 'best of ruby quiz', extracted from sit
RoR is web application framework and it assumes that you already know
ruby programming language. Before learning RoR I think you want to learn
ruby language first. Start here
http://www.ruby-lang.org/en/documentation/
http://blog.eugen.co
--
Posted via http://www.ruby-forum.com/.
--
Yo
For this route
edit_operator_profile GET /operator_profile/:id/edit(.:format)
{:action=>"edit", :controller=>"operator_profile"}
Below is wrong
<%=link_to('Profile',:controller => "operators_profile",:action
=>"edit")%>
Correct will be
<%=link_to('Profile',:controller => "o
John,
RestClient is a thin wrapper fot Net::HTTP standard library
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
And it assumes that you already know how to use it and why; it just
simplifies (if you know how to use Net::HTTP) usage of Net:HTTP.
My advice is instead of getting
>
> # since 'user = find_by_email(email)' was the last evaluated expression
>
Wrong. In case user doesn't match password then last evaluated statement
was
if user.has_password?(submitted_password)
which is a 'if modifier' for 'return user' statement; and it returned
nil. See from irb session:
You can create a helper method (in helpers/articles_helper.rb):
def correct_post_path
@article.persisted? comment_article_path : articles_path
end
And then use this helper in your form builder
form_for @article, correct_post_path do ... end
That helps ? Maybe you can tell us under what co
These railscasts also will help
http://railscasts.com/tags/23
http://blog.eugen.co
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@go
Maybe what you need is make use of rails_best_practices gem
https://github.com/flyerhzm/rails_best_practices
once you install it and run in your rails project it will discover this
kind of problematic controllers and tell you about 'code smell'. Plus,
it will point you to solution on http://rai
Link below is your answer:
http://www.johnyerhot.com/2008/11/04/deployment-nightmare-godaddy/
I don't think godaddy is good place to deploy rails applications. You
will save your time and money if you choose another place to host your
application. I use linode, thought that one is a VPS which you
Hi,
I try to use omniauth to authenticate with facebook account, as in Ryan
Bates tutorial http://railscasts.com/episodes/235-omniauth-part-1.
I have followed all steps in that tutorial.
When point my browser to http://localhost:3000/auth/facebook it indeed
redirects me to facebook to login. But o
Hello ruby community,
By default when I run
rake gems:install
rake install missing gems altogether with rdoc documentation.
Manually I can install gems without rdoc documentation like this:
gem install factory_girl --no-rdoc --no-ri
How can I configure (rake? rails?or maybe gem pkg manager?)
Hello Rails community,
I create a new project with rails 2.x.y.
> rails micro_project
Then
> cd micro_project
An then I try to enter into console:
>script/console
and rails throws following ugly error:
/home/eugenc/.rvm/gems/ruby-1.9.2...@rails238/gems/actionmailer-2.3.8/lib/action_mailer.rb
18 matches
Mail list logo