[Rails] Redcar (was: Rails Code Indentation)

2009-06-07 Thread Davi Vidal
Em 06-06-2009 10:34, JannaB escreveu: > What do you use asa good RoR editor then? > What do you (all the list) think about Redcar? http://redcareditor.com/ I'm using it actually and thought that I can be a very good editor. davi --~--~-~--~~~---~--

[Rails] Re: Git branch with same content

2009-03-16 Thread Davi Vidal
On 03/16/2009 05:10 PM, Bosko Ivanisevic wrote: > (...) On the other hand you can commit them (...) since that commit will > not disturb anything until you publish your changes with git push. (...) > (...) So there is no reason not to commit new files on the development branch. > Yeah. I

[Rails] Re: Git branch with same content

2009-03-16 Thread Davi Vidal
On 03/16/2009 04:34 PM, Colin Law wrote: > Did you remember to commit the new files before switching back to master? > What if I can't/don't want to commit now? Should I stage my files? Thanks, davi --~--~-~--~~~---~--~~ You received this message

[Rails] Re: finding and deleting in activerecord array

2009-03-10 Thread Davi Vidal
On 03/10/2009 09:54 AM, Tarscher wrote: > I know how to access the users but I don't know how to search in the > array (not the database) and then delete a user if a match is found. > So, provide examples and don't do top-posting. group: 1 user: 1 group = Group.find(1) user = group.use

[Rails] Re: finding and deleting in activerecord array

2009-03-10 Thread Davi Vidal
On 03/10/2009 09:29 AM, Tarscher wrote: > Hi all, > > Groups has_ many users. > If one Group has_many Users, then you can access group[1]'s users using the group's method 'users'. group = Group.find(1) users_group_one = group.users > I have 2 activerecord arrays: > 1. groups = containi

[Rails] Re: Testing for a a new file using Rspec

2009-02-26 Thread Davi Vidal
in /path/foo". > > Can this be done? If so how is it done? (I am guessing it would be a > clause in the "after" method. > It's not what you're searching for, but can be a start line. :-) http://cassiomarques.wordpress.com/2009/01/23/how-to-

[Rails] Re: about attachment_fu

2009-01-14 Thread Davi Vidal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nilesh Kulkarni wrote: > I am using attachment_fu but in database it is nit storing it's hight > and width what should i do. Try this: http://www.google.com.br/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fwww.catb.org%2F~esr%2Ffaqs%2Fsma

[Rails] Re: Updating multiple databases at the same time

2009-01-13 Thread Davi Vidal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jack Christensen wrote: > Yanni Mac wrote: >> I have an application that is load balanced. I have a master database >> which I update once a day. Then I push the raw mysql files to all other >> servers so they are the same as the master. This works

[Rails] Re: Rails Auto Documentor?

2008-12-18 Thread Davi Vidal
oc:*" didn't fit your needs? hth, -- Davi Vidal -- E-mail: davividal arroba siscompar ponto com ponto br MSN : davividal arroba msn ponto com GTalk : davividal arroba gmail ponto com Skype : davividal YIM : davi_vidal ICQ : 138815296 --~--~-~--~~~-

[Rails] Re: Tag clouds

2008-12-10 Thread Davi Vidal
On Tuesday 09 December 2008 12:03:55 Davi Vidal wrote: > On Tuesday 09 December 2008 10:49:24 Sulekha Mariam wrote: > > Sulekha Mariam wrote: > > [...] > > > > def tag_cloud > > [...] > > > now i am getting the error > > > > Showing stor

[Rails] Re: Tag clouds

2008-12-09 Thread Davi Vidal
r method accepts no argument. Try something like: def tag_cloud(args*) I don't remember if this is the correct syntax. Search for it. :-) HTH, -- Davi Vidal -- E-mail: davividal arroba siscompar ponto com ponto br MSN : davividal arroba msn ponto com GTalk : davividal arroba

[Rails] Re: controllername_url vs controllername_path

2008-11-19 Thread Davi Vidal
AIK, ControllerName_Url gives you something like http://domain.tld/ControllerName, while ControllerName_Path gives you something like ${RAILS_ROOT}/app/controllers/controllername_controller.rb HTH, -- Davi Vidal -- E-mail: davividal arroba siscompar ponto com ponto br MSN : davivid

[Rails] Re: before_save only works at console

2008-11-01 Thread Davi Vidal
On Saturday 01 November 2008 21:11:59 Frederick Cheung wrote: > On 1 Nov 2008, at 22:46, Davi Vidal <[EMAIL PROTECTED]> wrote: [...] > >From my view, it saves using comment_author.value and > > comment_email.value. > > What am I missing? > > anon will be the

[Rails] before_save only works at console

2008-11-01 Thread Davi Vidal
c.save! => true >> c => # All works fine. But it doesn't work from my view: http://pastie.org/305633 From my view, it saves using comment_author.value and comment_email.value. What am I missing? Best regards, -- Davi Vidal -- E-mail: davividal ar

[Rails] Re: application URL

2008-11-01 Thread Davi Vidal
On Friday 31 October 2008 16:37:08 Davi Vidal wrote: > Hi all. I'm trying to get gravtastic working at my comments model, so > I'm > doing this: > > class Comment < ActiveRecord::Base > validates_presence_of :commentary > > belongs

[Rails] application URL

2008-10-31 Thread Davi Vidal
n't renders my image correctly. How can I get my full application URL as http://my.domain.tld/app/images/no_gravatar.png ? Thanks, -- Davi Vidal -- E-mail: davividal arroba siscompar ponto com ponto br MSN : davividal arroba msn ponto com GTalk : davividal arroba gmail ponto