Great - thanks for the feedback :-)
On Nov 23, 7:05 pm, Rob Biedenharn
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
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 wrote:
> Hi all,
>
>
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 expe
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 t
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 wrote:
> RubyonRails_newbie wrote in post #960301:
>
> > Hi All,
>
&g
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 sn
Awesome,
thanks for the advice!!!
On 12 July, 19:02, Bob Proulx wrote:
> RubyonRails_newbie wrote:
> > <%= form_tag :action => "comment", :id => @blogpost %>
> > <%= text_area "comment", "body", :cols => 40, :rows =>
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 %>
<%= submit_tag "Comment" %>
I tried - @blogcomment = @user.blogcomments.create(:id =>
params[:body]) but
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" wrote:
> On Sun, 11 Jul 2010, RubyonRails_newbie wrote:
> > i'm trying to add comments to
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
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 wrote:
> On 7 July 2010 21:25, RubyonRails_newbie wrote:
>
> > Hmm,
>
> > for
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 wrote:
> it has to - it shows every query
>
> On Wed, Jul 7, 2010 at 3:25 PM, RubyonRails_newbie
>
>
>
> wrot
ogposts in the order you expect.
>
> On Wed, Jul 7, 2010 at 3:07 PM, RubyonRails_newbie
>
>
>
> 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:
>
>
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,
Ah yes - i cleared the tables, started again and the problem has
gone!! :-)
Thanks for that Frederick!
On 6 July, 09:03, Frederick Cheung wrote:
> On Jul 5, 8:41 pm, RubyonRails_newbie wrote:
>
>
>
> > This shows the comment, but when I add the following I get an error
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...
Comments
<% for blogc
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 password
sorted.
i just needed the sendmail referenc in the production.rb file.
works fine now.
thanks Frederick
On 13 June, 21:12, RubyonRails_newbie
wrote:
> re: It's complaining that the ssl certificate that the smtp server is
> using is for a different host.
>
> how do I change
re: It's complaining that the ssl certificate that the smtp server is
using is for a different host.
how do I change this then?
It works fine on my other app that runs on the same server
On 13 June, 21:09, Frederick Cheung
wrote:
> On Jun 13, 7:51 pm, RubyonRails_newbie
ed to change this..
Can anyone please help??
Many Thanks
On 13 June, 19:51, RubyonRails_newbie
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 (
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
* sorted *
I added @users = User.all and it returned all users
I can take it from there now...
On 7 June, 18:24, RubyonRails_newbie
wrote:
> It is that line that it is complaining about...
>
> However my user controller must have this already as i burgled the
> code from anoth
It is that line that it is complaining about...
However my user controller must have this already as i burgled the
code from another page that displays a list of pending friends...
i'll do some more digging - thanks
On 7 June, 18:06, Colin Law wrote:
> On 7 June 2010 17:45, RubyonRail
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
i changed it to comment, and it returned this error:
--- !map:HashWithIndifferentAccess
any ideas?
On 22 May, 10:23, RubyonRails_newbie
wrote:
> > You've writtten comments.create :id => params[:body] which I assume
> > isn't what you wanted.
>
> Well- i'
_id, body etc and when I
change 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 wrote:
> On May 22, 10:07 am, RubyonRails_newbie
> wrote:
>
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 => session[:u
rederick Cheung wrote:
> On May 8, 5:15 pm, RubyonRails_newbie
> wrote:
>
> > def comment
> > @user = User.find(session[:user_id])
> > @blogpost = Blogpost.new
> > @blogpost = Blogpost.create(:body => params[:body], :user_id =>
>
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 sto
Thanks for the reply COlin, Yes i'd missed that. All sorted now.
Thanks for that!
On 8 May, 11:46, Colin Law wrote:
> On 8 May 2010 09:55, RubyonRails_newbie wrote:
>
>
>
>
>
> > Hello everyone,
>
> > I've decided to take the step into creating a mi
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.
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 w
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 tuto
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 tuto
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 = "ABCDEFGHIJKL
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 wrote:
> On 10 February 2010 19:54, RubyonRails_newbie
>
> wrote:
> > in that case, would it make more sense to add it t
Yeah - I have @ user defined in the view and the controller
On 10 Feb, 22:01, Steve Klabnik 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 the Google Groups "Rub
t the error
mentioned before:
You have a nil object when you didn't expect 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
wrote:
> Hmmm..
>
&
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 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.
>
>
>
> > I've jus
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 wrote:
> Your application.html.erb?
>
> Then yeah, you're going to need @u
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 wrote:
> I don't see you defining @user anywhere. Which view is your code in?
--
You received this message because you
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,
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
be
ng it as @user?
>
> On Feb 9, 6:05 pm, RubyonRails_newbie
> 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 g
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 #
The invite form allows me to check for a user, and whether they
already have registered. I
est/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
>
>
>
>
>
> wrote:
> > When I amended my registrati
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 =
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 mail[:message].subje
Thanks for the response.
Slightly more complex than I'd hoped, but certainly makes sense.
Many thanks!
On 2 Feb, 09:45, Peter Hickman wrote:
> Mm. The problem here is that your problem has little if anything to do with
> Rails or Ruby even.
>
> You have a database with a list of users and some
e a problem
> with views?
>
> Regards,
> Milan
>
> On Feb 1, 11:30 pm, RubyonRails_newbie
> wrote:
>
>
>
> > Hi All,
>
> > I'm looking to improve finding friends on my site, by adding a
> > ''suggestion'' page/area.
>
&g
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 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
> > kne
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 abili
users.each { |user| user.info ||= Info.new }
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 wrote:
> On 23 January 2010 18:17, RubyonRails_newbie
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" wrote:
> Quoting RubyonRails_newbie :
>
>
>
>
>
>
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
> from script/server:3
any ideas??
On Jan 20, 9:25 pm, RubyonRails_newbie
wrote:
> Hi All,
>
> sor some odd reason i updraded my gems, which updated rails from 2.3.3
>
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 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_requ
got it working - Thank you!
On 4 Jan, 20:41, RubyonRails_newbie
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'))'&
nd wrote:
> > 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
> > wrote:
>
> >> > Script probably
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
wrote:
> thanks for that.. I will take a look.
>
> Hopefully that will start it..so basicall
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 wrote:
> On Jan 3, 5:39 pm, RubyonRails_newbie
> wrote:> Yes - it
enied
Hmmm
On 3 Jan, 17:31, Colin Law wrote:
> 2010/1/3 RubyonRails_newbie :
>
>
>
>
>
> > 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 noti
Bit more info -
looking at the ferret log file it says this:
[user] DRb connection error: druby://localhost:9010 -
#
this tells me i've not configured something, but i'm still unsure how
to resolve this...
Any help appreciated...
Thanks again
On 3 Jan, 17:09, RubyonRails_newbie
w
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 tha
> 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 wrote:
> On Jan 2, 11:15 am, RubyonRails_newbie
> wrote:
>
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
wrote:
> On Jan 1, 6:43 pm, RubyonRails_newbie
> wrote:
>
>
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 worke
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 environ
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 wrote:
> 2009/12/31 RubyonRails_newbie :
>
> > Yeah good spot.
>
> > I avoided rake db:migrate because of
d
> column.
>
> On Dec 31, 8:36 am, RubyonRails_newbie
> 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
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 s
wn command
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
wrote:
> Yes possibly. How wold I
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
wrote:
> On Dec 30, 12:35 pm, RubyonRails_newbie
> wrote:> Hi.
> > When I do rake --version it says 0.8.1.
&g
tough cookie to crack...
Cheers
On Dec 30, 11:30 am, Frederick Cheung
wrote:
> On Dec 30, 10:13 am, RubyonRails_newbie
> wrote:> hello
>
> > can anyone think of a solution to my issue from yesterday?
>
> > error = undefined method `reenable' for
> > [environme
nsure
how to carry this out..
any other ideas?
many thanks
On 29 Dec, 22:13, RubyonRails_newbie
wrote:
> it says command not found
>
> Hmmm...
>
> On 29 Dec, 22:05, Johan De Klerk wrote:
>
>
>
> > It just outputs a bit of info about your system... I dont think root ac
it says command not found
Hmmm...
On 29 Dec, 22:05, Johan De Klerk 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
've had 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
De Klerk 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
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
wrote:
> Hello,
>
> I am trying to deploy my app at t
Hello,
I am trying to deploy my app at the moment, and each time I do, I get
the following error when i run a trace on it:
rake db:migrate --trace
(in /srv/some area/someplaceelse...)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migra
singSourceFile)" :)
>
> 2009/12/24 RubyonRails_newbie
>
>
>
> > That's an excellent site, and that seems to have moved me onto the
> > next error (!) :-)
>
> > no such file to load -- mysql (MissingSourceFile)
>
> > ERROR: Error installing mysql:
&g
m, 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
>
>
>
> > thanks for the reply,
>
> > so - sudo gem install fe
Dec, 17:55, Gintautas Šimkus 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
>
>
>
>
>
> > Ah yes :-) c
intautas Šimkus wrote:
> I believe they are different things with similar looking names.
>
> 2009/12/24 RubyonRails_newbie
>
>
>
> > I'll take another loook... thanks.
>
> > the host does allow me to upload this stuff. looking at my list of
> >
all that to your
> hosting place and try again :) Merry Christmass ;)
>
> 2009/12/24 RubyonRails_newbie
>
>
>
> > Hello all,
>
> > just to elaborate on this:
>
> > It's complaining about ''/usr/lib/ruby/1.8/rubygems/
> > custom_requir
te(spec.name, false,
"= #{spec.version}")
However this is my 1st deployment so not 100% sure what's happening
here..
Any ideas?
Thanks
On 24 Dec, 14:09, RubyonRails_newbie
wrote:
> Hi there,
>
> I'm just trying to deploy my app to my vhost, and i'm getting an e
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 be
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 confirm
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 r
On 10 Dec, 15:48, Colin Law wrote:
> 2009/12/10 RubyonRails_newbie :
>
> > ...
>
> > 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.
>
&
On 9 Dec, 22:56, Rodrigo Dellacqua wrote:
> On Wed, Dec 9, 2009 at 5:46 PM, RubyonRails_newbie <
>
>
>
>
>
> craigwest...@googlemail.com> wrote:
>
> > On 9 Dec, 20:39, RubyonRails_newbie
> > wrote:
> > > On 9 Dec, 16:43, Colin
On 9 Dec, 20:39, RubyonRails_newbie
wrote:
> On 9 Dec, 16:43, Colin Law 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
On 9 Dec, 16:43, Colin Law 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?
>
> If it is using the code in fetchFirstPostForSess
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 wrote:
> 2009/12/9 RubyonRails_newbie :
>
> > cool - i'll give
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 wrote:
> 2009/12/9 RubyonRails_newbie
ing the 1 value to a 0, but the post still remains
in the view…
Hmm.
On 8 Dec, 21:29, Colin Law wrote:
> 2009/12/8 RubyonRails_newbie :
>
> It is best not to top post, it is easier to follow the thread if
> things are kept in order, I have reordered.
>
>
>
>
>
>
&
I'll have a look around and see whats going on... Many Thanks
On 8 Dec, 21:29, Colin Law wrote:
> 2009/12/8 RubyonRails_newbie :
>
> It is best not to top post, it is easier to follow the thread if
> things are kept in order, I have reordered.
>
>
>
>
>
>
>
and no posts visible, 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 wrote:
> 2009/12/8 RubyonRails_newbie :
>
> > Hi Colin,
>
> > :conditions active_post is meant to only di
ation makes
sense?
On 8 Dec, 20:50, Colin Law wrote:
> 2009/12/8 RubyonRails_newbie :
>
>
>
>
>
> > 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.
1 - 100 of 183 matches
Mail list logo