I'm trying to move my app to a new server, and in the deploy.rb file I
updated the hostname to reflect the new server. However, when I run
any cap task it still contacts the old server no matter what, and I
can't figure out why this is. There is no reference to the old server
anywhere I can see.
-
There is a little company called Webappcabaret.com that specializes in
PAAS.
You may give them a try. They use the same cloud infrastructure as the
others you mentioned, but I think their PAAS platform is far superior.
Ben Knight wrote in post #1016745:
> Hello.
>
> We are looking for a new prov
I'm using Gmail for both my development and production though, I
configured them to be the same actually (even the same account).
On Apr 26, 6:08 am, Bryan Crossland wrote:
> Sent from my iPhone
>
> On Apr 26, 2011, at 3:56 AM, Mike C wrote:
>
> > I'm using Rai
I'm using Rails 3 and installed exception notifier as a gem. It works
perfectly in development, but for some reason it isn't sending e-mails
in production. When I check the logs, I don't see any mention of my
app trying to send an e-mail, but running rake middleware shows that
it is loaded. I'm rea
Nevermind, I got it. I just have to test to see if it works. Thanks
for your help!
On Apr 24, 3:49 pm, Mike C wrote:
> Oh, I was looking for an example of how to use it like a piece of code
> or something.
>
> On Apr 24, 7:51 am, Frederick Cheung
> wrote:
>
>
>
> &
Oh, I was looking for an example of how to use it like a piece of code
or something.
On Apr 24, 7:51 am, Frederick Cheung
wrote:
> On Apr 24, 9:23 am, Mike C wrote:
>
> > How can I use the :limit to change taggable_ type and context?
>
> The limit tells mysql how much of the
How can I use the :limit to change taggable_ type and context?
On Apr 24, 12:32 am, Frederick Cheung
wrote:
> On Apr 23, 11:23 pm, Mike C wrote:
>
> > I'm using the acts as taggable on plugin, and in the migrations
> > there's a line of code to create an inde
I'm using the acts as taggable on plugin, and in the migrations
there's a line of code to create an index:
add_index :taggings, [:taggable_id, :taggable_type, :context], :name
=> "tagging_index", :limit => {:name => 10, :surname => 20}
When I use unicode, the migration fails and I get told that t
I don't know how people do it, but I'm having huge headaches getting
these things to work with each other. At the moment, doing a cap
deploy:setup gives me this error:
/Users/mikool/.rvm/gems/ree-1.8.7-2011.03@rails3/gems/
capistrano-2.5.19/lib/capistrano/recipes/deploy.rb:55:in `join': can't
conv
I know that, but I want it to start automatically whenever the server
restarts so I dont have to run that command myself. I want this
automated.
On Feb 6, 12:11 am, loganathan sellappa
wrote:
> you can start ts by rake ts:start
--
You received this message because you are subscribed to the Goog
I wanna know how I can start my thinking_sphinx and its delayed delta
when I reboot my server. Currently if I reboot my server, I have to
use cap to start those things and it's a little bit of an annoyance so
I'd like to automate this somehow. Anyone know how?
--
You received this message because
Thanks for the link to the nested resource thing, it was an
interesting read. So I take it that it's a good idea to define both a
nested resource and an independent one for any resource that needs to
be nested?
On Jan 4, 2:36 pm, "ppgeng...@prevailhs.com"
wrote:
> On Jan 3
As the title says, when people aren't using ajax I use flash messages
to tell them stuff. However, when they use the ajax stuff the flash
message shows when they move to a different page. I've searched in
this group and have found similar cases, but they all use RJS and can
just call Flash.discard
I found a solution here:
https://github.com/rails/jquery-ujs/issues/issue/52
On Jan 18, 12:07 pm, Mike C wrote:
> I forgot to mention that I'm using jQuery. I tried ajax using
> prototype in a test app and it worked, but when I use jQuery it
> doesn't work. However, when u
oesn't recognize the .js.erb files. As far as I know, I'm
using the most recent version of jQuery and the most recent version of
the rails driver for it.
On Jan 14, 8:47 pm, Mike C wrote:
> My ajax stopped working when I switched to using respond_with. For my
> Votes, I have the
My ajax stopped working when I switched to using respond_with. For my
Votes, I have the create action and the corresponding create.js.erb,
and respond_to :html, :js, :xml in the controller. Heres the log when
I try and create a vote:
Started POST "/stories/3-asdfasdf/votes" for 127.0.0.1 at F
I'm using jQuery and I have this line in my Application.rb:
config.action_view.javascript_expansions[:defaults] = %w(jquery
rails application)
Everything works fine in development, but in production I notice that
Rails is trying to load all the prototype files and there's nothing in
the prod
with authorization. Your matrix
> isn't all that complicated as a model of permissions :-)
>
> --
> Top-posted from an HTC
>
> On Jan 13, 2011 7:40 AM, "Mike C" wrote:
>
> In my app I have 3 different models in a linear fashion:
>
> M1, M2, and M3. M1 has
In my app I have 3 different models in a linear fashion:
M1, M2, and M3. M1 has many M2 which has many M3.
M1 has 2 properties: private and completed. If it's private then only
the person who created M1 can do anything with it (all the rest
actions), and if it's completed then more M2 and M3 cann
I'm deploying via capistrano but when I try and do a bundle install it
asks for my password to install the gems. I give it a password but
oddly enough the password appears on the console in plain text and
when I press enter, nothing happens. I waited for a couple hours and
still nothing happened, s
Thanks for the advice, I didn't know about cancan, it looks like it'll
make things a lot easier for me. As for the resources, that's the case
except when I want to create a new resource. The to-be child doesn't
have a parent yet since it doesn't exist at the moment so I'd have to
pass the parent or
My app currently is working but I'm a little OCD about conforming to
best practices so I'd like to get a few things cleared up.
1. I have quite a lot of before_filters to restrict certain parts of
the site to some users, and a lot of my controllers use very similar
authorization code. Here's an ex
I followed tutorials and changed my Rails app to use jQuery. All the
needed files are in place, but ajax isn't working. I have the
format.js in the correct place and the js.erb file named after the
action. Calling stuff from application.js works, and I do have remote
=> true in the link. When I try
, 10:58 pm, Mike C wrote:
> I'm about ready to deploy my app so I decided to create a testapp to
> deploy just so I can learn how to use capistrano for deployment. I'm
> running Ruby 1.8.7 with Rails 3.0.3, capistrano 2.5.19 and git 1.7.3.2
> with gitosis. Everything is going to
I'm about ready to deploy my app so I decided to create a testapp to
deploy just so I can learn how to use capistrano for deployment. I'm
running Ruby 1.8.7 with Rails 3.0.3, capistrano 2.5.19 and git 1.7.3.2
with gitosis. Everything is going to be hosted on the same machine
(git and the app, so th
I want to call the mailer from inside my model, but it gives me this
error:
uninitialized constant User::PasswordResetMailer
So I'm assuming that I have to include it somehow, but I'm not sure
how to do this. I've tried searching Google but I'm not getting any
helpful results.
--
You received t
e you need to call .html_safe on the return value of your
> > helper. In Rails 3, everything is automatically scrubbed.
>
> > On Dec 21, 12:50 pm, Mike C wrote:
> >> I have some code to allow pages to define sub menus within their
> >> respective html files. Here
I have some code to allow pages to define sub menus within their
respective html files. Here's the method I have in the application
helper:
def sub_menu(&block)
links ||= []
links << capture(&block)
@sub_menu ||= ""
links.each do |link|
@sub_menu += content_tag(:li, link)
After a few days of experimenting I think I got it fixed. All I did
was make the search variable optional, and removing it also does the
trick.
On Dec 20, 10:58 pm, daze wrote:
> On Dec 20, 9:13 pm, Marnen Laibow-Koser wrote:
>
> > Well, you didn't quote the lines you were replying to, and you d
I'm a little confused about custom routes in rails 3. I have a
variable that I had a default value for in rails 2, and changing it to
rails 3 version gives this:
match 'stories/list/:story_list/:search' => 'stories#index', :as =>
'story_list', :story_list => 'popular', :search => nil
When I use t
Thanks for the response! I don't manually include active record
anywhere, so how can I fix this?
On Dec 11, 10:57 am, "Jeffrey L. Taylor"
wrote:
> Quoting Mike C :
>
> > I'm trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try
> > and start the
I'm trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try
and start the rails server with 'rails s' I get this:
/Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/
dependencies.rb:239:in `require': no such file to load -- activerecord
(LoadError)
Using Mac OS X Snow Leop
b/master/lib/resize_as_jpeg_when_neces...
>
> > Cheers,
> > Walter
>
> > On Wed, Feb 24, 2010 at 12:24 PM, Peter De Berdt
> > wrote:
>
> >> On 23 Feb 2010, at 23:19, Mike C wrote:
>
> >> Thanks. How can I use paperclip to convert? I tried looking
Thanks. How can I use paperclip to convert? I tried looking it up in
google but got no results.
On Feb 23, 1:59 pm, Robert Walker wrote:
> Mike Chai wrote:
> > Does anyone know of a way to convert an uploaded tiff image into a jpg
> > or png?
>
> http://github.com/thoughtbot/papercliphttp://www.i
Does anyone know of a way to convert an uploaded tiff image into a jpg
or png?
--
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-t...@googlegroups.com.
To unsubscribe from this group, send em
So I have 2 models, Comment and Picture. A Comment has one Picture if
the users so chooses, but when someone is creating a Comment, it would
of course call the create method in the Comment Controller. However, I
want it to create a Picture as well. I could add it to the create
method in the Commen
So I have 2 models: Picture and Comment.
Pictures have many Comments, but I'd like for users to be able to post
Pictures in Comments, so Comments will have one Picture (possibly).
This creates a kind of circular relationship it looks like, and the
only way I could think of to implement this is wi
Currently I am using thinking_sphinx, but to my dismay, a lot of hosts
do not have sphinx installed and are unwilling to install it "because
of security reasons". This leaves me with a very limited option of
hosting as I'd have to get a VPS/dedicated but I just don't have that
kind of money, so I'
This was fixed by copying the libmysql.dll located in the mysql
installation location to the Ruby/bin directory. :)
On Jul 20, 7:33 pm, bill walton wrote:
> Hi Mike,
>
> On Mon, 2009-07-20 at 18:31 -0700, Mike C wrote:
> > I just tried to use MySQL and it didn't work. I
I just tried to use MySQL and it didn't work. I even installed a new
one and it still doesn't work. Any ideas?
On Jul 20, 4:52 pm, Mike C wrote:
> Thanks. It's just that when I tried to require 'mysql' in the irb, it
> gave me an error telling me the libmys
Thanks. It's just that when I tried to require 'mysql' in the irb, it
gave me an error telling me the libmysql.dll or something couldn't be
found and that I'd need to reinstall/repair mysql.
On Jul 20, 3:41 pm, Frederick Cheung
wrote:
> On Jul 20, 9:32 pm, Mike C w
I use WAMP and I don't really want to install another MySQL just to
work with Rails. How can I make the mysql gem use WAMP's MySQL?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post
Could I get some details on why it does take more resources and what I
can do to minimize resource usage as much as possible?
On Jul 19, 2:09 am, snacktime wrote:
> On Sun, Jul 19, 2009 at 12:36 AM, Mike C wrote:
>
> > I'd like to know if Rails requires significantly mo
I'd like to know if Rails requires significantly more resources than
PHP. Assume the following setups:
Rails:
Apache 2.2 w/ Passenger
MySQL Database
PHP:
Apache 2.2 w/ MPM worker and Fast CGI
MySQL Database
In one of my Rails apps running the above setup, I'm at roughly 80mb
RAM idle, and for e
Thanks, that seems to have done the trick since but I'll test again to
make sure. What does that -a option do?
On Jun 21, 4:48 am, Rakoth wrote:
> try
> git commit -a -m 'comment'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
What do you mean? When I deleted them from my local machine I just
deleted the folder (dragged into trash and emptied).
On Jun 20, 10:15 pm, Phlip wrote:
> Mike C wrote:
> > So I deleted some plugins from my app on my local machine and pushed
> > the changes to my git re
So I deleted some plugins from my app on my local machine and pushed
the changes to my git repository. Using capistrano to update the code,
I found that the plugins still exist in the current directory! Does
anyone have any ideas as to what is causing this?
--~--~-~--~~~---
ile and the
> public key... add the pub key to a file ~/.ssh/authorized_keys set the
> permission to 600 (chmod 600 ~/.ssh/authorized_keys) then do ssh
> localhost
>
> On Jun 17, 1:09 pm, Mike C wrote:
>
> > Anyone have any ideas?
>
> > On Jun 17, 2:42 am, Mike C
Anyone have any ideas?
On Jun 17, 2:42 am, Mike C wrote:
> But the deployment server and the git repository are the same server
> in my case. What should I do?
>
> On Jun 17, 1:47 am, Andrew Porter wrote:
>
> > Mike C wrote:
> > > Er well it worked but it stil
But the deployment server and the git repository are the same server
in my case. What should I do?
On Jun 17, 1:47 am, Andrew Porter wrote:
> Mike C wrote:
> > Er well it worked but it still asks for a password. You see, for doing
> > git push it used to ask for a password
gt;
> -
> Maurício
> Linhareshttp://codeshooter.wordpress.com/|http://twitter.com/mauriciojr
>
> On Tue, Jun 16, 2009 at 11:10 PM, Mike C wrote:
>
> > I did that but it's still asking for passwords.
--~--~-~--~~~---~--~~
You received this message because you are s
eshooter.wordpress.com/|http://twitter.com/mauriciojr
>
> On Tue, Jun 16, 2009 at 9:31 PM, Mike C wrote:
>
> > Each time I use cap deploy I have to type in the password for the user
> > I assigned to do cap deploy. This is getting kind of annoying, so I'm
> > wondering how I
Each time I use cap deploy I have to type in the password for the user
I assigned to do cap deploy. This is getting kind of annoying, so I'm
wondering how I can do this without having to type in the password
each time.
--~--~-~--~~~---~--~~
You received this message
gt; LIKE ?' }.join(' AND '), *(kws.map { |k| "%#{k}%" })] } }
>
> end
>
> and so on for user, where you can now add options like :joins and/
> or :include if user is defined on another table.
>
> --Matt Jones
>
> On May 14, 3:28 pm, Mike C wrote:
Yeah, that helps a lot. I actually realized that a little bit after
posting and looked it up on Google, but this confirms it. Thanks!
On May 15, 9:19 am, Marnen Laibow-Koser wrote:
> On May 14, 4:28 pm, Mike C wrote:
>
> > I have a Search Model which contains search data. It loo
I have a Search Model which contains search data. It looks like this:
keywords:string
by_user:boolean
by_title:boolean
...
So basically what I want is, if one of the booleans is true it will
search that particular index. So if by_user is true and by_title is
true, it will search the database of
On Tue, May 5, 2009 at 12:35 PM, Mike C wrote:
>
> > Hi, the problem has been fixed but I was basically shooting in the
> > dark and happened to get a hit. I'm using Debian 5.0 with MySQL 5 for
> > my production. How does Passenger keep its logs, if any?
>
> > On M
on? What database. Inquiring
> minds want to know. :)
> Cheers--
>
> Charles
>
> On Tue, May 5, 2009 at 1:00 AM, Mike C wrote:
>
> > I'm getting 500 errors on my production server running Passenger. I
> > cannot, for the life of me, find out what the problem is.
I'm getting 500 errors on my production server running Passenger. I
cannot, for the life of me, find out what the problem is. Everything
works fine on my local machine. However, on my production machine, I
can't even get logs since I don't know where Passenger keeps the logs.
So I'm scrolling thro
Does anyone here know any good sites/tutorials on how to integrate
Adobe Flash and Rails? I know there's stuff out there for Flex, but
I'm looking for just Flash.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
I've decided to make a major change in my application which affects
more than 1 model. I don't want to wipe all the data though. Here's
the scenario I'm in:
I have a Book model with a Chapter model. Book has many Chapters and
Chapter belongs to Book. However, I want to add a Story model between
t
I'm wondering what the best practice way to do this is. Basically, I
have a Snippet model containing a text field of type text and a Story
model also with a text field of type text. At some point, I want to
make a story entry using a snippet entry's text.
Passing this using new_story_path(:snippe
Thanks! That did the trick. :) But I'm still curious as to how you
would generally abstract away something you want to do independent of
the database.
On Mar 16, 1:34 pm, Philip Hallstrom wrote:
> > I'm trying to pick some random rows from my database; for development
> > I use SQLite and for pr
Oh, ok. Thanks for the replies!
On Mar 16, 8:17 am, Craig Demyanovich wrote:
> If what I want to accomplish affects only the model with which I'm working,
> I put the behavior in a callback on the model. If it affects other related
> models, I put it in an observer. Otherwise, I put it in the co
I'm trying to pick some random rows from my database; for development
I use SQLite and for production I use MySQL. However, as the title
suggests, they both have different ways to get random rows. How can I
abstract this away?
--~--~-~--~~~---~--~~
You received this
Oh, so I have to create the spin script myself?
On Mar 16, 6:28 am, Commander Johnson
wrote:
> The page you mentioned looks very much updated now. A while ago the 'spin'
> script was not well documented here.
> If you use subversion, don't forget to add the svn:executable property to
> the spin
I get the error that my assigned user isn't allowed to execute script/
spin. I checked in my current/ directory and there is no script/spin
file.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" g
Error fixed. I was using restful auth before and switched over to
authlogic, but forgot to remove some code that restful auth put in my
User model.
On Mar 15, 5:36 pm, Mike C wrote:
> I'm using authlogic. On my local machine everything runs fine, but on
> my production server it
I'm using authlogic. On my local machine everything runs fine, but on
my production server it's giving me an error, telling me that
crypted_password can't be null when I try and create the admin user. I
look at the error and notice that everything that's supposed to be
encrypted or use a generated
Fixed the error. I had to remove the .git and .gitignore directory and
file from the plugin directories individually.
On Mar 15, 2:02 pm, Mike C wrote:
> I just checked and the plugin directory is in the source, but after
> you mentioned that I took a look inside the directory and
On Mar 15, 1:55 pm, Michael Graff wrote:
> On Sun, Mar 15, 2009 at 3:49 PM, Mike C wrote:
>
> > Hi, when I do cap deploy:cold I get this error:
>
> > rake aborted!
> > undefined local variable or method `acts_as_commentable' for # > 0x7fa1c34a2f10>
>
Hi, when I do cap deploy:cold I get this error:
rake aborted!
undefined local variable or method `acts_as_commentable' for #
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:1833:in `method_missing_without_paginate'
/usr/local/lib/ruby/gems/1.8/gems/mislav-will_pagi
I'm thinking about using observers for my situation. Basically
whenever an object is created, I want a message to be sent to a user
via a PM system I made. At the moment this is happening within the
create method of the controller. I tried putting this in a callback in
the model, but it seems meth
greSQL has an ILIKE for that, but then that's not
> supported by MySQL. PostgreSQL also has some regex pattern matching
> functions that are faster, but again I believe are postgres only.
>
> Anyway, just something to keep in mind if you think your app might be
> run with di
Thanks, that makes things clearer. But how big is big? I don't plan on
my app being hugely popular, but would thousands of entries be ok? Is
there an area where LIKE starts to be really slow?
On Mar 13, 11:06 am, Charles Johnson wrote:
> On Fri, Mar 13, 2009 at 12:42 PM, Mike
I've heard that using LIKE is very slow, but I see it being used a lot
in examples, blogs etc. Is it really that bad? Since Rails doesn't
directly support Fulltext search, this is the easiest way to get
searching done, right? Or are there any other easier ways? I'm using
acts_as_indexed right now,
Thanks for the help. That was just an example, not a good one, but I
just needed to explain the problem I'm having. It had nothing to do
with acts_as_taggable_on, but I might as well just directly tell my
problem.
I want to display all the tags that a tagger has used. However, using
@user.owned_t
I'm using acts_as_taggable_on and I want to get a list of unique
taggings. How can I do this? In a more general sense, say that I have
a Product model with attributes name and price. I have these:
id: 1
Name: Juice
Price: 5
id: 2
Name: Juice
Price: 5
So when I do a Product.find(:all) I'll get b
Nevermind, getter was returning a user object instead of a string.
fixed. :)
On Feb 26, 10:10 pm, Mike C wrote:
> Ok, I did it. But in the model I have validates_presence_of, and even
> though the field is filled, I keep getting the blank error.
>
> On Feb 26, 9:52 pm, CFC wrote:
Ok, I did it. But in the model I have validates_presence_of, and even
though the field is filled, I keep getting the blank error.
On Feb 26, 9:52 pm, CFC wrote:
> define it as a getter and setter.
>
> On Fri, Feb 27, 2009 at 10:49 AM, Mike C wrote:
>
> > I want to validate
I want to validate a field in my form that's not an attribute in the
model. How do I do this?
--~--~-~--~~~---~--~~
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 rubyonrai
I'm using the acts as indexed to sort of implement a full text search
for titles of stories. This is working perfectly, but it seems it
stores these indexes in files. This worries me since I fear there may
be a lot of IO which could be slow since it doesn't seem to scale. Any
comments on this are
s.
>
> ie: foo.to_html.gsub(/<\/?p>/, '')
>
> On Tue, Jan 13, 2009 at 2:12 PM, Mike C wrote:
>
> > Thanks, that's getting closer to what I want. :) But I'd still like
> > things enabled such as lists...does that have further options like a
> >
Thanks, that's getting closer to what I want. :) But I'd still like
things enabled such as lists...does that have further options like a
whitelist?
On Jan 12, 4:21 pm, "Adam Kittelson"
wrote:
> This may or may not help you depending on which RedCloth functionality you
> need.
>
> Fromhttp://red
Everytime I do to_html with RedCloth it wraps the entire thing in
which is really annoying. I've looked all over for an answer on how to
disable this but I've found nothing. I'm surprised that I'm the only
one that doesn't want my stuff wrapped in tags. Does anyone know
how to disable this?
--~-
; h(textilize(@mymessage))
> -
> Ryan Bigg
> Freelancerhttp://frozenplague.net
>
> On 12/01/2009, at 2:50 PM, Mike C wrote:
>
>
>
> > I installed Redcloth into my app so that it could use Textile.
> > However, it seems that textilize (the function used to parse the
&g
I installed Redcloth into my app so that it could use Textile.
However, it seems that textilize (the function used to parse the
Textile stuff) and h aren't compatible. If I do <%= textilize h
@mymessage %> it doesn't work. If I take out the h it works but then I
leave myself open to XSS. Is there
I'm having this EXACT same error and was about to post asking for
help. That last post by Fred fixed it. :) However, something weird
happened. I have a database called testapp and it says it can't find
it...I also had 2 mysql_config files on my system.
--~--~-~--~~~---~
I'm a little confused as to how booleans work in Rails. Which is
better in the database? boolean or int(1)? True == 1 and False == 0,
right? Using SQLite, I tried to set a value to true inside the
database but it gave me an error. MySql didn't, so I had to switch to
int(1) for it to work. Is this
In the will_paginate plugin/gem lies a file /test/fixtures/user.rb. It
seems that that user.rb is somehow overriding app/model/user.rb. How
is it doing this? What can I do to stop it from destroying my app?
--~--~-~--~~~---~--~~
You received this message because you
With the help of a friend, I've found what's causing the error. In the
will_paginate plugin under tests/fixtures is a user.rb class defined
as class User ActiveRecord::Base. Rails was using that one instead of
one in my app/model. My new question is, why was it doing this? It
shouldn't have loaded
Thanks. That fixed that problem...but the other problem still exists. :
(
On Jan 2, 5:32 pm, "Jeffrey L. Taylor" wrote:
> Quoting Mike C :
>
>
>
>
>
> > I'm getting this very weird error and I can't figure out what the
> > problem is. I'm
class Comment < ActiveRecord::Base
belongs_to :commentable, :polymorphic => true
# NOTE: install the acts_as_votable plugin if you
# want user to vote on the quality of comments.
#acts_as_voteable
# NOTE: Comments belong to a user
belongs_to :user
end
class Story < ActiveRecord
I'm getting this very weird error and I can't figure out what the
problem is. I'm using acts_as_commentable. Basically, I have a partial
with this code in it:
<%= link_to comment.user.login, profile_path(User.find
(comment.user_id).profile) %>
<%=
Nope, I made sure to change the migrations file name too.
--~--~-~--~~~---~--~~
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
To unsubscr
*sigh* nevermind again, the issue isn't solvedstill getting the
same error.
On Nov 10, 8:58 pm, Mike C <[EMAIL PROTECTED]> wrote:
> Actually I missed one reference...fixed it. But now I'm getting this
> error:
>
> rake aborted!
> No Rakefile found (
x27;t know what could be
causing this.
On Nov 10, 8:56 pm, Mike C <[EMAIL PROTECTED]> wrote:
> When I try and run rake db:migrate, I get this error:
>
> rake aborted!
> uninitialized constant CreateUsers
> /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
&g
When I try and run rake db:migrate, I get this error:
rake aborted!
uninitialized constant CreateUsers
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:266:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencie
So what's the proper way to use it? self.exists? doesn't work
either...can I only do User.exists??
On Nov 10, 2:31 am, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On 10 Nov 2008, at 10:20, Mike C wrote:
>
>
>
> > I'm getting the error that exists? is an
I'm getting the error that exists? is an undefined method when I try
and use it in a model. Basically, it's something like this:
if exists? :user_id => current_user.id
>From what I understand, exists? is in ActiveRecord::Base so a model
should be able to use it, right? I've used find() successfu
1 - 100 of 101 matches
Mail list logo