I have a question :
I have Users that have a boolean attribute Admin.
What I did is basically : if admin attribute is set on false, then a
writing appears telling that 'you must be an admin to see this zone'.
I wanted to organize things differently, for example:
if the logged user is logged, and
Hi guys,
I'm starting a new app from scratch, and I'd need to make an email
verification. What do you suggest to use? ActionMailer? Some other gem?
I took a look around and I found Authlogic and Devise that do this kind
of thing, but I messed a little bit with and they don't convince me a
lot,
Hi there!
I experienced an issue with routing.
Basically, I'm trying to follow step-by-step the Rails' official guides
process for what concerns the nested routing.
So, I have Newspapers that has_many :ads , and :ads belongs to
:newspaper .
What I did was simply trying to obtain an URL like
I know, the title is quite confusing, as much as I am.
The thing is : there must be something that slips aways from my
understanding, because every now and again I have to reinstall all the
gems, even though I already have them installed.
It happens sometimes that I'm executing a rails console
1. Nope. There's the main index:
0.0.0.0:3000/posts #which is placed in =
/views/posts/index.html.erb
and there's the tag action:
0.0.0.0:3000/posts/tag/TAG_NAME #which is placed in
/views/posts/tag.html.erb
2. Nope. But I didn't get the right post neither before. Changing from
1. No, in index.html.erb there's just the standard template.
in tag.html.erb I've tried to do several ways, none gives an error
but none shows the tagged posts either.
Right now I tried a simpler solution : a plain
%@posts.each do |post| %
%= post.tags.class %
%= post.class %
%end%
where
I ultimately written the app from the beginning, this time including
'acts_as_taggable_on' from the beginning, and it works!
I'm definitely sure that it depended to a name mismatch, since the Post
model had already an attribute called :tags .
Even by removing this attribute with a rails g
All right, I just need the last step to go.
I've done everything correctly, so the index show a briefing of the
post, and all the tags, which are correctly linked to a proper url,
specifically :
let's put I click on the tag aqua , the specified url shall be
http://0.0.0.0:3000/posts/tag/aqua
I tried to do as you suggested but it doesn't show anything. I've tried
also to figure out if it wasn't a nil object but it's not even this.
For instance, on tag.html.erb :
% @posts.each do |post| %
%= post.title.class%
%= post.tags%
%end%
it gives as result a blank page, it not even shows
But it doesn't work on my app.
I don't know why, I downloaded it and installed with bundle install, but
still when I add to a certain model the string :
acts_as_taggable
I systematically obtain an error, so I was trying to avoid this by
creating by myself the method.
--
Posted via
Hello!
I'm developing a classical Blog like app, and I'm having some kind of
issues about posts' tags, because I've correctly installed
acts_as_taggable and acts_as_taggable_on_steroids gems but none of them
work, for a controller's mismatch error (due to a Post's tags:string
attribute I guess),
...is like to have a cutter that doesn't cut! :)
Hello, I'm working on Action Mailer, with a simple email confirmation
when a user signs up.
So, basically when I try to register myself on my local server, the
registration goes just fine, without errors nor failures, but I
ultimately don't
Nope, the log shows a -I guess- normal session :
Sent mail to leo.m...@gmail.com (4245ms)
Date: Mon, 29 Aug 2011 14:39:43 +0200
From: leo.m...@gmail.com
To: leo.m...@gmail.com
Message-ID: 4e5b888f9c7e6_6a0482ece0c864...@e4r.local.mail
Subject: Iscrizione completa!
Mime-Version: 1.0
Content-Type:
Right, this is weird.
I didn't change a single line and tried again to register with the usual
email address and this time I received the message!
Some conflict at ISP level maybe? Could be?
Thank you guys,
Leo
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
Walter Davis wrote in post #1019034:
On Aug 29, 2011, at 8:43 AM, Leo M. wrote:
charset=UTF-8
to receive the email I send to myself.
Date: Mon, 29 Aug 2011 12:45:06 +0200
From: leo.m...@gmail.com
To: sdpaoks...@gmailasd.ca
Message-ID: 4e5b6db295886_6a0482f4651464...@e4r.local.mail
It was this, so the method index had to be copied exactly how it is to
another controller in order to can list another controller's array.
Right!
Thank you very much :)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
Thanks very much! I'll mess around with the code and I'll let you know
:)
--
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@googlegroups.com.
I've got an issue :how can I pick datas from a controller to another
controller's view?
For example, how can I show a Question in the Answer's index.html.erb?
If i write
%= @questions.question % on Answer's index.html.erb, it doesn't
recognize the method, even if I previously wrote on the
I'm sorry, I originally posted this topic on Rails-Deployment, but it's
evidently the wrong area.
I didn't want to, did that on distraction, sorry :)
Anyway, the original post was this below:
Hello!
I'm at my very first application in Rails, and I'm learning from Agile
Development with Rails.
19 matches
Mail list logo