Great - thanks for the feedback :-)
On Nov 23, 7:05 pm, Rob Biedenharn r...@agileconsultingllc.com
wrote:
On Nov 23, 2010, at 1:29 PM, RubyonRails_newbie wrote:
oops...
Spotted the issue:
the correct line should be:
%= link_to image_tag (about.png, :border =0), :controller
Hi all,
Can anyone tell me what it is I've done wrong with the following?
I'm wanting to use images to link to the page in the site.
So I have this:
%= link_to(image_tag about.png, :border =0, :controller =
site, :action = about) %
Unfortunately, the image doesn't link as I'd expected. The
oops...
Spotted the issue:
the correct line should be:
%= link_to image_tag (about.png, :border =0), :controller =
site, :action = about %
That works now.
On Nov 23, 6:19 pm, RubyonRails_newbie craigwest...@gmail.com wrote:
Hi all,
Can anyone tell me what it is I've done wrong
I dont have the latesr RoR updates, so I have (i think) rails 1.8.7.
All i needed to know is whether or not upgrading my current OS will
change/affect the current set up.
On Nov 9, 1:29 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
RubyonRails_newbie wrote in post #960301:
Hi All
Hi All,
I'm currently mid-project at the moment, and am scepticle in upgrading
to Snow Leopard.
If I do, will it affect my current Ruby on Rails set up on my
machine??
Cheers
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
Hi there,
I'd like to have a go at building an app whereby people fill in a
series of questions based on their ski/snowboard taste etc...
Once completed, the app suggests a specific board for them to
purchase.
Now the buying part isn't important, but the isea of being able to
suggest a ski or
Hello,
Yeah below is the code from the form that creates the comment:
%= form_tag :action = comment, :id = @blogpost %
%= text_area comment, body, :cols = 40, :rows = 6 %br /
%= submit_tag Comment %
I tried - @blogcomment = @user.blogcomments.create(:id =
params[:body]) but this still
Awesome,
thanks for the advice!!!
On 12 July, 19:02, Bob Proulx b...@proulx.com wrote:
RubyonRails_newbie wrote:
%= form_tag :action = comment, :id = @blogpost %
%= text_area comment, body, :cols = 40, :rows = 6 %br /
%= submit_tag Comment %
I tried - @blogcomment
i'm trying to add comments to a blog.
I got it working, but i want to store the user too, so I added the
user_id to the blogcomments table...
Since then, the page renders - but the comment is no longer stored.
(the database stores the user id, but not the body, blogpost id)
def comment
I tried both :body and :id but the same issue:
@blogcomment = Blogcomment.create(:id = params[:body], :user_id =
session[:user_id])
On 11 July, 21:23, David A. Black dbl...@rubypal.com wrote:
On Sun, 11 Jul 2010, RubyonRails_newbie wrote:
i'm trying to add comments to a blog.
I got
Ah yes - i cleared the tables, started again and the problem has
gone!! :-)
Thanks for that Frederick!
On 6 July, 09:03, Frederick Cheung frederick.che...@gmail.com wrote:
On Jul 5, 8:41 pm, RubyonRails_newbie craigwest...@gmail.com wrote:
This shows the comment, but when I add
Hi everyone,
I have an app in which I am attempting to add a blog to.
I have the blog and commenting system working. It has 2 tables:
1: blogposts (stores the actual blog topics/stories)
2: blogcomments (stores the comments for each blog created)
so - I've been playing around with the layout,
the blogposts in the order you expect.
On Wed, Jul 7, 2010 at 3:07 PM, RubyonRails_newbie
craigwest...@gmail.com wrote:
Hi everyone,
I have an app in which I am attempting to add a blog to.
I have the blog and commenting system working. It has 2 tables:
1: blogposts (stores the actual blog
what I mean is that the orderby isn't been used.
the latest entry in the log just shows the select query without the
order by.
On 7 July, 21:28, Jason Michael chewman...@gmail.com wrote:
it has to - it shows every query
On Wed, Jul 7, 2010 at 3:25 PM, RubyonRails_newbie
craigwest
ah yes... :-)
It is in the log:
0mSELECT * FROM `blogcomments` ORDER BY created_at desc LIMIT 1
So if it is in the log, why isn't it ordering the comments?
On 7 July, 21:42, Colin Law clan...@googlemail.com wrote:
On 7 July 2010 21:25, RubyonRails_newbie craigwest...@gmail.com wrote:
Hmm
Good Evening all!!
I am writing a blog into my app at the moment and have got it so that
users can comment on a post.
THe comments render perfectly, so to enhance the experience, I wanted
to add a note to show users how long ago a post was added.
Here's what I have...
h5Comments/h5
% for
Hello there,
I have an application that allows users to register/login etc. However
I have a slight problem in that I cannot reset user's passwords. THis
is frustrating to anyone who uses my site as if they forget their
account password they are stuck.
On RoR, can anyone recommend a good
Hello,
I have an application that, when you create an appointment it sends an
email to the client to say someone has just booked.
Locally, this works fine (i'm just using sendmail)
Locally - all email tests have come through - no problem.
However - when I copy all the files onto the server and
to change this..
Can anyone please help??
Many Thanks
On 13 June, 19:51, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hello,
I have an application that, when you create an appointment it sends an
email to the client to say someone has just booked.
Locally, this works fine (i'm just using
, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hello,
I have an application that, when you create an appointment it sends an
email to the client to say someone has just booked.
Locally, this works fine (i'm just using sendmail)
Locally - all email tests have come through - no problem
sorted.
i just needed the sendmail referenc in the production.rb file.
works fine now.
thanks Frederick
On 13 June, 21:12, RubyonRails_newbie craigwest...@googlemail.com
wrote:
re: It's complaining that the ssl certificate that the smtp server is
using is for a different host.
how do I
Hello, I am hoping somwone can help with this
Basically I have a website and I want to display a list of users
currently using the site, prior to someone logging in.
In a sense, it is a way for people to view a profile before logging
in, and then they can choose whether or not to add them as
, RubyonRails_newbie craigwest...@googlemail.com wrote:
Hello, I am hoping somwone can help with this
Basically I have a website and I want to display a list of users
currently using the site, prior to someone logging in.
In a sense, it is a way for people to view a profile before
Hello there,
I have a blog that people can leave comments on.
I have used the following code to attempt to save the comment value to
the database:
def comment
@user = User.find(session[:user_id])
Blogpost.find(params[:id]).comments.create(:id =
params[:body], :user_id =
it, the null value shifts to the user_id, or the blogpost_id.
I'm probably missing something really simple, but i was looking at
this all last night! :-)
On 22 May, 10:16, Frederick Cheung frederick.che...@gmail.com wrote:
On May 22, 10:07 am, RubyonRails_newbie craigwest...@googlemail.com
wrote
i changed it to comment, and it returned this error:
--- !map:HashWithIndifferentAccess
any ideas?
On 22 May, 10:23, RubyonRails_newbie craigwest...@googlemail.com
wrote:
You've writtten comments.create :id = params[:body] which I assume
isn't what you wanted.
Well- i'd started to follow
frederick.che...@gmail.com wrote:
On May 8, 5:15 pm, RubyonRails_newbie craigwest...@googlemail.com
wrote:
def comment
@user = User.find(session[:user_id])
@blogpost = Blogpost.new
@blogpost = Blogpost.create(:body = params[:body], :user_id =
session[:user_id
Hello everyone,
I've decided to take the step into creating a mini-forum for my
website where users can open new posts on exixting topics and allow
people to discuss things etc...
I am following a tutorial in the book: APRESS - Practical Rails Social
Networking Sites and have hit a minor issue.
Thanks for the reply COlin, Yes i'd missed that. All sorted now.
Thanks for that!
On 8 May, 11:46, Colin Law clan...@googlemail.com wrote:
On 8 May 2010 09:55, RubyonRails_newbie craigwest...@googlemail.com wrote:
Hello everyone,
I've decided to take the step into creating a mini
Hello there,
I have a mini blog in which stores a few bits of info:
- title
- body
- created on
- user_id
If you're logged in, you can enter a comment too.
this stores:
- body
- blogpost_id
- user_id
however. For some reason, the user id when the blog is created is
stored. It is not
Hello everyone,
I'd like to implement a blog on my site.
I can do this easily enough using the built in scaffolding, and then
amend it accordingly.
However, I'd quite like users to be able to comment on blogs, and to
allow for user's to be stored in the database. In my head I have a
blogs table
Hi there,
I am looking to implement a password recovery feature so users on my
site can request a password when they forget theirs...
My passwords are one way encrypted, using a sha1 hexdigest so
currently users would only see a garbled string which is not their
password.
So - are there any
Hi there,
I am looking to implement a password recovery feature so users on my
site can request a password when they forget theirs...
My passwords are one way encrypted, using a sha1 hexdigest so
currently users would only see a garbled string which is not their
password.
So - are there any
Hi There,
I'm following a tutorial to introduce a search feature.
It comprises of a series of boxes, (A-Z) which are links. These links
when clicked, trigger the search code in index (in infocontroller.rb)
Code below:
Info Controller:
def index
@title = search
@letters =
cool thank you.
All valid points... I think i'll go through the tutorial again. I may
have missed something.
cheers
On 10 Feb, 20:20, Michael Pavling pavl...@gmail.com wrote:
On 10 February 2010 19:54, RubyonRails_newbie
craigwest...@googlemail.com wrote:
in that case, would it make more
, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi Everyone...
I'm following a railscast episode on how to implement an invitation
feature.
It's going really well, but i've hit a minor snag that I cant get
over..
undefined method `generate_token' for #Invitation:0x2563bf8
Hi there,
I've been looking for a while now and can't seem to find where I'm
going wrong..
I'm following a railscast tutorial to send invites out to people.
there's n invitation.rb page:
class Invitation ActiveRecord::Base
#attr_accessible :sender_id, :recipient_email, :token, :sent_at
yeah - it's complaining about the @user in
% if @user.invitation_limit 0 %
%= link_to 'Send invitation!',
new_invitation_path %
% end %
I've tried renaming it with just user, then
my view is in the main layouts file.
I also tried to add @invitation.sender = @user to the invitations
controller but that hasn't solved it...
On 10 Feb, 19:24, Steve Klabnik steve.klab...@gmail.com wrote:
I don't see you defining @user anywhere. Which view is your code in?
--
You received
in that case, would it make more sense to add it to a page when a user
is already logged in?
I've just tried adding it to the invitation's index page, and i get
the same issue...
sorry
On 10 Feb, 19:45, Steve Klabnik steve.klab...@gmail.com wrote:
Your application.html.erb?
Then yeah,
Hmmm..
It's still not working, even when I've added it in the invitations
view page.
:-(
On 10 Feb, 20:02, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Craig Westmoreland wrote:
in that case, would it make more sense to add it to a page when a user
is already logged in?
Heck yes.
it!
The error occurred while evaluating nil.invitation_limit
Any ideas where i need to make the change now, so this works?
Thanks again...
On 10 Feb, 20:21, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hmmm..
It's still not working, even when I've added it in the invitations
view page
Yeah - I have @ user defined in the view and the controller
On 10 Feb, 22:01, Steve Klabnik steve.klab...@gmail.com wrote:
considering it's user.invitation_limit, (or maybe @user), that means you
need to define one or the other.
--
You received this message because you are subscribed to
When I amended my registration page, I included the digest to encrypt
the password in the database.
If someone forgets their password, how do I get this mailed back to
the user?
The action is as follows:
def remind
@title = Remind Me!
if param_posted?(:user)
email =
, like 'digest/sha1', then you will not
be able to decrypt the password. You can only reset it to something
the system knows then send that password to them.
On Tue, Feb 9, 2010 at 6:54 AM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
When I amended my registration page, I
Hi Everyone...
I'm following a railscast episode on how to implement an invitation
feature.
It's going really well, but i've hit a minor snag that I cant get
over..
undefined method `generate_token' for #Invitation:0x2563bf8
The invite form allows me to check for a user, and whether they
Hi there, I wan tto be able to allow users to invite friends...
The action below is exactly the same as the code used to send a user
their username. Only difference is, I need to change the ''user =
User.find_by_email(email)'' part as obviously, I dont want to only
email people who are already on
Hi There,
Anyone know of a nice basic way to send an email in ruby on rails?
I'm thinking of allowing my site members to reccomend/invite friends
by entering their email address and hitting send.
At a guess, to begin with I think i'd need:
def message(mail)
subject
? Or you have a problem
with views?
Regards,
Milan
On Feb 1, 11:30 pm, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi All,
I'm looking to improve finding friends on my site, by adding a
''suggestion'' page/area.
BAsically, a query should be run against a logged in user
Thanks for the response.
Slightly more complex than I'd hoped, but certainly makes sense.
Many thanks!
On 2 Feb, 09:45, Peter Hickman peterhickman...@googlemail.com wrote:
Mm. The problem here is that your problem has little if anything to do with
Rails or Ruby even.
You have a database
Hi All,
I'm looking to improve finding friends on my site, by adding a
''suggestion'' page/area.
BAsically, a query should be run against a logged in user and find
other people from the same town/location. Or that share a similar
hobby etc.
I have a controller and an index page i want to update
Cheers all,
I will dig into this now.
Appreciate ther feedback..
On 24 Jan, 22:49, steve ross cwdi...@gmail.com wrote:
On Jan 24, 2010, at 2:33 PM, RubyonRails_newbie wrote:
Hi All,
this may over-lap with my recent ferret post, but I wondered if anyone
knew of the best way to add
}
users = users.sort_by { |user| user.info.last_name }
@buddies = users.paginate(:page = curr_page, :per_page = 5)
end
end
Many, Many thanks!!
On 23 Jan, 20:32, Colin Law clan...@googlemail.com wrote:
On 23 January 2010 18:17, RubyonRails_newbie
craigwest
Hi All,
this may over-lap with my recent ferret post, but I wondered if anyone
knew of the best way to add a search engine for rails on your site?
I've tried ferret, which seems a bit ''hit n miss''
Someone has also reccomeded paperclip.
In addition to this, where would I look to find the
Hi All,
sor some odd reason i updraded my gems, which updated rails from 2.3.3
to 2.3.5.
I now have issues:
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:270:in `activate':
undefined method `map' for nil:NilClass (NoMethodError)
from
/custom_require.rb:
31:in `require'
from script/server:3
any ideas??
On Jan 20, 9:25 pm, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi All,
sor some odd reason i updraded my gems, which updated rails from 2.3.3
to 2.3.5.
I now have issues:
/usr/local/lib/ruby/site_ruby
Problem solved.
I'd frozen gems earlier too, so removed the rails folder from vendor
and it's all ok now...
Lesson learned there. I'll not d that again. :-)
On Jan 20, 9:45 pm, Jeffrey L. Taylor r...@abluz.dyndns.org wrote:
Quoting RubyonRails_newbie craigwest...@googlemail.com:
ok
thanks for that.. I will take a look.
Hopefully that will start it..so basically I run ruby script/
ferret_server from my app location on the hosts server?
Thanks again.
On 3 Jan, 18:33, Frederick Cheung frederick.che...@gmail.com wrote:
On Jan 3, 5:39 pm, RubyonRails_newbie craigwest
Ah, according to the message I got back, it was already running.
I've stopped it and re-started it, but i'm still getting the same
error
On 4 Jan, 11:39, RubyonRails_newbie craigwest...@googlemail.com
wrote:
thanks for that.. I will take a look.
Hopefully that will start it..so basically
.
I've stopped it and re-started it, but i'm still getting the same
error
On 4 Jan, 11:39, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Script probably just not marked as executable. You could either chmod
Hi there,
pid_file: log/ferret.pid
log_file: log
got it working - Thank you!
On 4 Jan, 20:41, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Thanks Ashif,
I like your blog - it makes sense, however I'm not 100% sure where
''require(File.join(File.dirname(__FILE__), '../../../../config/
environment'))'' is meant to go
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont have an index folder being
created.
I read on a google post that it may be
again
On 3 Jan, 17:09, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont
Hmmm
On 3 Jan, 17:31, Colin Law clan...@googlemail.com wrote:
2010/1/3 RubyonRails_newbie craigwest...@googlemail.com:
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps
I think will_paginate is installed.. should I be checking this in gem
list --remote ?
Presumably installed at root level too?
Id best take another peek...
Thanks for the response...
On Jan 1, 10:48 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jan 1, 6:43 pm, RubyonRails_newbie
What do you mean by root?
When i log onto my vhost, there is a root folder.
Should it be installed here, or actually where my app resides?
May be a daft question - sorry! :-)
On 2 Jan, 13:16, Frederick Cheung frederick.che...@gmail.com wrote:
On Jan 2, 11:15 am, RubyonRails_newbie craigwest
hello everyone...
I'm trying to set my email up in production.
During test and development, I just used sendmail, which was stored in
my development.rb folder at /config/environments
Everywhere online suggests that in production, the mailer stuff needs
to be in /config/ and then into the
Hello there,
On my site I have a basic search form that uses find_by_ferret which
will return users within the site and render the data that matches the
search criteria
If multiple rows are returned, the rows are rendered, and then
paginated, if more that X are returned. Sounds simple, (and
Hi all,
Thankfully, my site is now live. It needs some tweaks, but most
importantly I need to fix the 500 internal server error I seem to be
getting.
We're sorry, but something went wrong(500), We've been notified about
this issue and we'll take a look at it shortly.
When I look at the log, it
column.
On Dec 31, 8:36 am, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi all,
Thankfully, my site is now live. It needs some tweaks, but most
importantly I need to fix the 500 internal server error I seem to be
getting.
We're sorry, but something went wrong(500), We've
Thanks for that ,
I can add it manually, but as you say I'll always be out of sync. I'll
dig a bit deeper.
Thank you
On 31 Dec, 15:27, Colin Law clan...@googlemail.com wrote:
2009/12/31 RubyonRails_newbie craigwest...@googlemail.com:
Yeah good spot.
I avoided rake db:migrate because
, but unsure
how to carry this out..
any other ideas?
many thanks
On 29 Dec, 22:13, RubyonRails_newbie craigwest...@googlemail.com
wrote:
it says command not found
Hmmm...
On 29 Dec, 22:05, Johan De Klerk johandk...@gmail.com wrote:
It just outputs a bit of info about your system... I dont
cookie to crack...
Cheers
On Dec 30, 11:30 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 30, 10:13 am, RubyonRails_newbie craigwest...@googlemail.com
wrote: hello
can anyone think of a solution to my issue from yesterday?
error = undefined method `reenable' for Rake::Task
Yes possibly. How wold I check this and if there are multiples, which
one needs removing and how is it best achieved?
Thanks again.
On Dec 30, 1:09 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Dec 30, 12:35 pm, RubyonRails_newbie craigwest...@googlemail.com
wrote: Hi.
When I do
db:migrate''
So - I tried to unistall it all again and reinstall rake and the gem
at root level
I'm still getting the same error, so was wondering if anyone had any
suggestions?
Many Thanks
On 30 Dec, 17:59, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Yes possibly. How wold I check
Update - I have also tried this, but with no luck: http://antono.info/en/138
(which explains to do this: sudo aptitude remove rake
sudo gem install rake
Im at a bit of a loss now..
ANy thoughts?
On 29 Dec, 16:23, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hello,
I am trying
De Klerk johandk...@gmail.com wrote:
Are you on Linux?
On Tue, Dec 29, 2009 at 7:31 PM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
Update - I have also tried this, but with no luck:
http://antono.info/en/138
(which explains to do this: sudo aptitude remove rake
sudo gem
this problem before but found it's very OS and distro specific...
On Tue, Dec 29, 2009 at 11:37 PM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
Hello Johan
Are you on Linux?
Yes I am I believe. I've uninstalled rake several times and the error
is still the same.
undefined
it says command not found
Hmmm...
On 29 Dec, 22:05, Johan De Klerk johandk...@gmail.com wrote:
It just outputs a bit of info about your system... I dont think root access
is needed
On Wed, Dec 30, 2009 at 12:00 AM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
Hi Johan,
Do
Hi there,
I'm just trying to deploy my app to my vhost, and i'm getting an error
on the phusion passenger page:
no such file to load -- ferret
now everything worked fine in development.
DO i need to reinstall the plugin and gem again? if so - would these
be in domain.com/public? or should it
})
However this is my 1st deployment so not 100% sure what's happening
here..
Any ideas?
Thanks
On 24 Dec, 14:09, RubyonRails_newbie craigwest...@googlemail.com
wrote:
Hi there,
I'm just trying to deploy my app to my vhost, and i'm getting an error
on the phusion passenger page:
no such file
that to your
hosting place and try again :) Merry Christmass ;)
2009/12/24 RubyonRails_newbie craigwest...@googlemail.com
Hello all,
just to elaborate on this:
It's complaining about ''/usr/lib/ruby/1.8/rubygems/
custom_require.rb''
Which, after some digging I found:
def require(path
dihita...@gmail.com wrote:
I believe they are different things with similar looking names.
2009/12/24 RubyonRails_newbie craigwest...@googlemail.com
I'll take another loook... thanks.
the host does allow me to upload this stuff. looking at my list of
gems, I already have acts_as_ferret
, Gintautas Šimkus dihita...@gmail.com wrote:
Now you have encountered dependencies :) Just do the same thing (gem install
XXX) for mkmf this time :) Or try sudo gem install ferret
--include-dependencies
2009/12/24 RubyonRails_newbie craigwest...@googlemail.com
Ah yes :-) correct.
I
...
No problem, keep asking questions, I'll do my best to help, but its getting
a little late here so don't hold your breath if I am not responding fast
enough ;)
2009/12/24 RubyonRails_newbie craigwest...@googlemail.com
thanks for the reply,
so - sudo gem install ferret --include-dependencies
Hi everyone,
I'm looking to get a helping hand with the following issue.
On my application, you can log in and view a friends profile. If you
are not friends with them, you see a page called 'stranger' which is a
scalled down profile page which is what ou would see until the
friendship is
Hi there,
To help keep privacy issues to a minimum on my app, I want to be able
to hide the personal info about a user, until friendship between 2
users is accepted.
I've added some logic that hides the profile (only visible = Profile
pic and Add user as a buddy)..
However - once friendship is
On 9 Dec, 22:56, Rodrigo Dellacqua rgoyta...@gmail.com wrote:
On Wed, Dec 9, 2009 at 5:46 PM, RubyonRails_newbie
craigwest...@googlemail.com wrote:
On 9 Dec, 20:39, RubyonRails_newbie craigwest...@googlemail.com
wrote:
On 9 Dec, 16:43, Colin Law clan...@googlemail.com wrote
On 10 Dec, 15:48, Colin Law clan...@googlemail.com wrote:
2009/12/10 RubyonRails_newbie craigwest...@googlemail.com:
...
Although it may be bad design - i'm going to keep it as it is for the
first roll out of my app, and make changes once i've found my feet
with rails.
I need help
in the view…
Hmm.
On 8 Dec, 21:29, Colin Law clan...@googlemail.com wrote:
2009/12/8 RubyonRails_newbie craigwest...@googlemail.com:
It is best not to top post, it is easier to follow the thread if
things are kept in order, I have reordered.
On 8 Dec, 21:08, Colin Law clan
cool - i'll give this a go. I hope it's as simple as == instead of =.
Dev log showed my query as a select statement from posts, not
specifically looking at the active_post.
will try a bit more :-)
cheers
On 9 Dec, 14:05, Colin Law clan...@googlemail.com wrote:
2009/12/9 RubyonRails_newbie
I'll need to take another look at it. I dont think it's there,
Would it look like select * from posts where active_post = 1?
I'll take a closer look later..
Cheers Colin
On 9 Dec, 14:23, Colin Law clan...@googlemail.com wrote:
2009/12/9 RubyonRails_newbie craigwest...@googlemail.com:
cool
On 9 Dec, 16:43, Colin Law clan...@googlemail.com wrote:
2009/12/9 RubyonRails_newbie craigwest...@googlemail.com:
I'll need to take another look at it. I dont think it's there,
Would it look like select * from posts where active_post = 1?
If it is using the code
On 9 Dec, 20:39, RubyonRails_newbie craigwest...@googlemail.com
wrote:
On 9 Dec, 16:43, Colin Law clan...@googlemail.com wrote:
2009/12/9 RubyonRails_newbie craigwest...@googlemail.com:
I'll need to take another look at it. I dont think it's there,
Would it look like select
Hi there,
I've decided that instead of deleting all posts on a user's profile,
there is now an active_post column in the posts table.
Basically, a user has only 1 active post at a time, and the database
is either a value of 0 (inactive) or 1(active)
I have a problem though. When i add a post, I
Law clan...@googlemail.com wrote:
2009/12/8 RubyonRails_newbie craigwest...@googlemail.com:
Hi there,
I've decided that instead of deleting all posts on a user's profile,
there is now an active_post column in the posts table.
Basically, a user has only 1 active post at a time
, until they add a
new one - so a user should only ever have 1 active post.
Hope this makes sense? Is there a way I can do this?
On 8 Dec, 21:08, Colin Law clan...@googlemail.com wrote:
2009/12/8 RubyonRails_newbie craigwest...@googlemail.com:
Hi Colin,
:conditions active_post is meant to only
I'll have a look around and see whats going on... Many Thanks
On 8 Dec, 21:29, Colin Law clan...@googlemail.com wrote:
2009/12/8 RubyonRails_newbie craigwest...@googlemail.com:
It is best not to top post, it is easier to follow the thread if
things are kept in order, I have reordered
Hi all,
I want to implement a captcha on my register page to help weed out any
'non-human' visitors.
I was told to check out http://expressica.com/simple_captcha/ but the
site isnt responding.
Does anyone have any other reccomendations that are tried and tested
successful?
Many Thanks
--
://www.logilogi.org/pub/doc/plugins/thorny_form/
http://agilewebdevelopment.com/plugins/thorny_form
http://nedbatchelder.com/text/stopbots.html
On Dec 7, 4:16 pm, Jason Roelofs jameskil...@gmail.com wrote:
eOn Mon, Dec 7, 2009 at 4:14 PM, RubyonRails_newbie
craigwest...@googlemail.com wrote
1 - 100 of 177 matches
Mail list logo