[Rails] RubyNation Conference, Washington, DC

2009-05-19 Thread Gray Herter
RubyNation is coming up soon. RubyNation is the Washington DC area's community Ruby and Rails Conference, where the Rubyists from around the nation's capital and beyond meet to bask in Ruby goodness for two full days! Don't miss out! RubyNation is just around the corner. Only one month away! R

[Rails] SQL View with sphinx???

2009-05-19 Thread @lCh3MiSt
Hi I am, using a SQL View in MySQL, but i need a Full -text -Search over that view, but my problem is that the view isn't a model, is just a object and don't have the method .search(), like the other model when I use sphinx. AnyOne has an idea how to solve this? --~--~-~--~~--

[Rails] JOBS - Have opening for ROR engineers

2009-05-19 Thread Doris
Hi All, I am looking for talented engineers with experince of around 4 - 6 years having hands on Ruby on Rails, Java, MySql or Flash. Work location will be Bangalore, India. If this sounds interesting please send across your resume to me at doris.gaig...@gmail.com. If you have any of your friend

[Rails] Re: Logout link.....unless logging in!

2009-05-19 Thread Ara J
Ryan Bates to the rescue. He does a nice screencast on authlogic, including answering your question. http://railscasts.com/episodes/160-authlogic Enjoy On May 19, 4:36 pm, JannaB wrote: > I have a link, /user_session/new, which takes you to a login screen (I > am using AuthLogic plugin) and i

[Rails] Re: migration failure> mysql gem issues > xCode install -HELP!!

2009-05-19 Thread Frederick Cheung
On May 20, 6:02 am, agilehack wrote: > please help > > i am running Mac os x 10.5.7 - have mysql 64 bit installed - ruby > 1.8.6 - rails 2.2.2.  All ruby and rails functions seemed to be > working fine until I tried to do a simple rake db:migrate last night > and got errors that seemed to indic

[Rails] Re: javascript encodeURIComponent equal code

2009-05-19 Thread Qi Xiang
Nanyang Zhan wrote: > Frederick Cheung wrote: >> I'd no idea where D6D0 is >> coming from > > OK, problem solved. Thank you, Fred. I may never have it done without > your help. > > It turns out %D6%D0%CE%C4 is not a utf16 relate result, but a GB2312 > encoding production. > > I convert the s

[Rails] Re: Nested forms

2009-05-19 Thread melvin ram
Thanks for the reply. I did find that problem and got it fixed. After that, I was stuck at a much bigger problem/bug (https:// rails.lighthouseapp.com/projects/8994/tickets/1943-nested-attributes- validations-circular-dependency) but I decided to change my requirements. Looks like there isn't a r

[Rails] Beautiful url

2009-05-19 Thread Mr. Bless
How to have a beautiful url like hulu. For example I like to have a url like this to show the movie detail with an id 1 as http://localhost:3000/movie/detail/1-movie_name If via a link, i can do this by writing the to_param method in movie model like this def to_param "#{id}-#{name}" end

[Rails] Re: migration failure> mysql gem issues > xCode install -HELP!!

2009-05-19 Thread velu
hi, did you created the rails project using like rails -d mysql then install gem install mysql.. if error comes copy the particular dll from mysql then copy to c:\ruby\bin folder then use rake db:migrate try may be help On 5/20/09, agilehack wrote: > > > please help > > i am running Mac o

[Rails] Re: Nested forms

2009-05-19 Thread Jason Pfeifer
Melvin Ram wrote: > http://pastie.org/private/ju5htjk8kqjdqik94br0nw > > Line 11 in this pastie is causing errors. errors are including in > pastie. I was basing this on the example on > http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes > ... any ideas on what I'm

[Rails] Re: Installing rmagick - failed

2009-05-19 Thread wejrow...@gmail.com
I'm not sure.. I have no idea. Hhow would I check? I've tried looking up for a while but can't find anything. Hivelogic has a good tutorial, but none of the zip files are working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[Rails] Re: Sending vars from Flash to Rails - how to use auth_token

2009-05-19 Thread wejrow...@gmail.com
Hmm, I tried doing: request.data = "authenticity_token="+paramList["authenticityToken"] +"&design_id=1"; instead of variables, and still nothing. One thing I did notice... I made a dynamic field on the stage and put the auth_code in there to see if it was working. I'm not sure why, but for some

[Rails] Re: What does has_one :through get me?

2009-05-19 Thread Marnen Laibow-Koser
Brian wrote: [...] > class User < ActiveRecord::Base > has_one :membership > has_one :role, :through => :membership > end > > class Membership < ActiveRecord::Base > belongs_to :user > belongs_to :role > end > > class Role < ActiveRecord::Base > end [...] I don't know if this is the pro

[Rails] What does has_one :through get me?

2009-05-19 Thread Brian
Apparently I assumed functionality that doesn't exist for this association. Should I not be able to reference the target model as an attribute? Here are my models: class User < ActiveRecord::Base has_one :membership has_one :role, :through => :membership end class Membership < ActiveRecord

[Rails] migration failure> mysql gem issues > xCode install -HELP!!

2009-05-19 Thread agilehack
please help i am running Mac os x 10.5.7 - have mysql 64 bit installed - ruby 1.8.6 - rails 2.2.2. All ruby and rails functions seemed to be working fine until I tried to do a simple rake db:migrate last night and got errors that seemed to indicate mysql gem needed to be installed (is this true?

[Rails] Re: Hosting small site on Windows temporarily

2009-05-19 Thread Mk 27
8bit wrote: > While I begin to pimp my RoR knowledge, I'd like to keep things as > simple as possible here. Sorry, the devil made me do it. Just repeate all this to the customer and it won't matter what server you use ;) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Re: has_many :through problem

2009-05-19 Thread Andrew Myers
I have what I thought was a similar problem, but I am not sure what's going wrong. Here's my model: class Bookmark < ActiveRecord::Base has_many :tags, :through => :bookmarks_tags end (in file app/models/bookmark.rb) class Tag < ActiveRecord::Base has_many_and_belongs_to_many :bookma

[Rails] Re: PayPal IPN and SSL

2009-05-19 Thread Jason
Thanks Pål, I really appreciate your sample code. --~--~-~--~~~---~--~~ 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 unsubscribe from

[Rails] Re: SSL testing on localhost - segfaults aplenty !

2009-05-19 Thread Freddy Andersen
Where is the segfault? Does Apache work like normal if you hit http and https ? You should be able hit the site with both before you even install the rail ssl require plugin. Mongrel does not care about if the client is talking http or https with Apache. Does the site work like normal if you hit

[Rails] Nested forms

2009-05-19 Thread mel ram
http://pastie.org/private/ju5htjk8kqjdqik94br0nw Line 11 in this pastie is causing errors. errors are including in pastie. I was basing this on the example on http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes ... any ideas on what I'm doing wrong? --~--~-~

[Rails] Re: Sending vars from Flash to Rails - how to use auth_token

2009-05-19 Thread Denis Haskin
I think you're on the right track; we use: request=new URLRequest("/line_items"); request.method=URLRequestMethod.POST; request.data="authenticity_token="+authenticity_token+"&design_id="+id; loader.load(request); One gotcha I ran into is authentic

[Rails] Hosting small site on Windows temporarily

2009-05-19 Thread 8bit
I'd like my next project to be RoR. I'm coming from .NET so it's going to take me some time. This particular task (at first) is pretty simple - the client has a single table they would like to maintain. I've already executed the scaffold commands and connected to the SQL Server database, no prob

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Marnen Laibow-Koser
Morgan Morgan wrote: [...] > well say i had 25 users, i'd be doing 25 querys right. one for each > user then looping through the results in basically the same way i was > doing it before? Gosh, I hope not. :) Fetch it all in one query with lots of joins, then loop through the recordset in m

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Morgan Morgan
Marnen Laibow-Koser wrote: > Morgan Morgan wrote: > [...] >> hrmm. i guess it would make more sense to do a bunch of db querys and >> parse small amounts of data instead of doing one big db call and parsing >> large amounts of data.. > > No. Ask for all the records you need in as few queries

[Rails] Sending vars from Flash to Rails - how to use auth_token

2009-05-19 Thread wejrow...@gmail.com
OK I finally am able to get a filereference uploader to send files to rails from Flash. I had to turn the auth_token off using: skip_before_filter :verify_authenticity_token, :only => 'upload_photo' But, for security I want to turn it back on. But I'm unable to get Flash to send the vars correc

[Rails] Re: How to dump a variable?

2009-05-19 Thread Sazima
Finally, when using mongrel, you can always print to the console: print @variable.inspect Cheers, Sazima On May 19, 4:08 am, Colin Law wrote: > Another alternative, where appropriate, is to use the ruby debugger and > break at the appropriate point to display the object using the debugger > co

[Rails] Extending finders to include a session variable as an option??

2009-05-19 Thread Alan
We have a Page model which acts_as_paranoid. AAP modifies ActiveRecord finders to ignore any records marked as deleted unless the :with_deleted => true option is supplied. We have a UI element which allows users to toggle whether or not to display deleted Pages, their current setting being store

[Rails] Re: Anyone here move from .NET?

2009-05-19 Thread Marnen Laibow-Koser
E. Litwin wrote: [...] > I've turned down projects where the client was entrenched in non-agile > processes, but I wouldn't turn a client down based on the technology > they wanted to use. Interesting. I sort of feel the opposite way: while I'd rather work with a client who understands good dev

[Rails] SSL testing on localhost - segfaults aplenty !

2009-05-19 Thread Abe Ced
Hello, I've followed the tutorial @ http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/ to setup SSL on localhost, wanting to use https for logging in and such. Using the method described above I get sensibly higher load times and of course very very frequent and random segfault

[Rails] Re: Logout link.....unless logging in!

2009-05-19 Thread Eric
adjust for authlogic: if current_user.logged_in? # logout link else # login/signup links end On May 19, 1:36 pm, JannaB wrote: > I have a link, /user_session/new, which takes you to a login screen (I > am using AuthLogic plugin) and in my layout template I have > > >  <%= link_to "Logo

[Rails] Polymorphism and belongs_to: trying to override belongs_to

2009-05-19 Thread Kendall
Here is my story: I have two models that represent people or groups that can "own" things. One is Person, the other is Group. Then, I have stuff that can be owned by either a Person or a Group, like a Post for instance: class Post belongs_to :owner, :polymorphic => true end class Person has

[Rails] Logout link.....unless logging in!

2009-05-19 Thread JannaB
I have a link, /user_session/new, which takes you to a login screen (I am using AuthLogic plugin) and in my layout template I have <%= link_to "Logout", user_session_path, :method => :delete, :confirm => "Are you sure you want to logout?" %> <%= @content_for_layout %> How can I s

[Rails] Re: Problems with testing/Wrong table columns

2009-05-19 Thread Colin Law
I am not sure but could this be an error in your test fixture file? It could be trying to load the test database from the fixture and failing because the syntax of your fixture yml file is wrong. Colin 2009/5/19 krani > > Hello, > > I'm new in rails developing and I'm just writing my first app

[Rails] Re: Update Local Variables?

2009-05-19 Thread Frederick Cheung
On May 19, 6:59 pm, Tyler Knappe wrote: > :onchange => start_date_time = $F, end_date = end_date_time[1,4]} > > My question is two fold; I want to update the local values for time and > date.  Is this the best method?  How would I go about doing it?  Google > seems to be failing me, but I'm new t

[Rails] Problems with testing/Wrong table columns

2009-05-19 Thread krani
Hello, I'm new in rails developing and I'm just writing my first application. I already created some controllers and models and it works. But now I want to write some tests for my application, but I got problems. I wrote one unit test for one model: test "test_should_create_a_component" do a

[Rails] Developer needed for ugreekrow.com -- Equity Partnership preferred

2009-05-19 Thread ugreekrow.com
Built in Ruby on Rails, UGreekRow helps fraternities and sororities from the Greek community manage daily operations and connect with alumni for job opportunities. With over 3,000 members signed up from the University of Arizona and Arizona State, we have plans to launch nationally within the nex

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Marnen Laibow-Koser
Morgan Morgan wrote: [...] > hrmm. i guess it would make more sense to do a bunch of db querys and > parse small amounts of data instead of doing one big db call and parsing > large amounts of data.. No. Ask for all the records you need in as few queries as possible (remember that AR will t

[Rails] Rendering a partial without evaluating the erb tags

2009-05-19 Thread Tim Conner
Hi, I have a partial (_contact.html) which looks something like this

<%= contact.name %>

<%= contact.id %>

I want to render this to the view exactly as it is show there. I don't want the erb tags evaluating. When I try and render this using: render :partial => 'contact.ht

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Morgan Morgan
Julian Leviston wrote: > On 20/05/2009, at 3:21 AM, Morgan Morgan > > wrote: > >> >> r >> r b >> > So you have a model hour, and it belongs to a model hour type and also > belongs to a user? > > Then your controller loads users, :include => hours and hour type > > Then, your view loops t

[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27
Julian Leviston wrote: > I thought you meant API.rubyonrails.org > > Which server errors? It was because of the link in the post (don't use <>?), I just tried the actual address and that looks good. THANKS. Also thanks Fred for the "guides" : -- Posted via http://www.ruby-forum.com/. --~-

[Rails] Update Local Variables?

2009-05-19 Thread Tyler Knappe
I'm having a problem updating local variables. I was using some date.select and time.select forms to save content to my database. <%# f.label :StartTime %> <%# f.time_select :start_time %> <%# f.label :EndTime %> <%

[Rails] Re: mysql date out of range

2009-05-19 Thread Hassan Schroeder
2009/5/19 Julian Leviston : > > Dates can't store earlier than I think 1970 something. Use time. The MySQL Date doc for 5.0.x says: The DATE type is used when you need only a date value, without a time part. MySQL retrieves and displays DATE values in '-MM-DD' format. The supported range is

[Rails] Re: mysql date out of range

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 10:14 AM, Herman Müller wrote: > I use ruby 1.8.6, rails 2.2.2 and mysql 5.045. > > In my scaffold I use "t.date :birthday". > > When I want to save a birthday  like 12.05.1970 I can save it. But when > I try to save older birthdays like 12.05.1969 I get the error-message

[Rails] Re: Rails Error explained?

2009-05-19 Thread Julian Leviston
I thought you meant API.rubyonrails.org Which server errors? Blog: http://random8.zenunit.com/ Twitter: http://twitter.com/random8r Learn: http://sensei.zenunit.com/ New video up now at http://sensei.zenunit.com/ real fastcgi rails deploy process! Check it out now! On 20/05/2009, at 3:29 AM

[Rails] Re: mysql date out of range

2009-05-19 Thread Julian Leviston
Dates can't store earlier than I think 1970 something. Use time. Blog: http://random8.zenunit.com/ Twitter: http://twitter.com/random8r Learn: http://sensei.zenunit.com/ New video up now at http://sensei.zenunit.com/ real fastcgi rails deploy process! Check it out now! On 20/05/2009, at 3:14

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Julian Leviston
On 20/05/2009, at 3:21 AM, Morgan Morgan wrote: > > it's basically just a calendar view from 8am to 12pm with colours for > each of the schedule types returned > > so it's a grid > > b = blue > r = red > there are actually 5 colours but in the interest of berevity i chose > two. > > 8:00

[Rails] Re: Rails Error explained?

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 10:31 AM, Mk 27 wrote: >> Anyway, see: > This is a dead link. ? It works for me. > I presume you mean the same thing that's at localhost:8808? I do not. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~-

[Rails] Re: Rails Error explained?

2009-05-19 Thread Frederick Cheung
On 19 May 2009, at 18:31, Mk 27 wrote: > > Hassan Schroeder wrote: > >> Anyway, see: >> >> -- >> Hassan Schroeder hassan.schroe...@gmail.com > > This is a dead link. I presume you mean the same thing that's at > localhost:8808? works for me. The

[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27
Hassan Schroeder wrote: > Anyway, see: > > -- > Hassan Schroeder hassan.schroe...@gmail.com This is a dead link. I presume you mean the same thing that's at localhost:8808? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~

[Rails] Re: Anyone here move from .NET?

2009-05-19 Thread E. Litwin
Having more than one tool in your pocket is very beneficial, and Ruby/ RoR are great tools to have. I have done a lot of .NET development in the past (and I did enjoy it) but have been doing mostly RoR for the past year. I won't say that I will never do a .NET project again. In some cases, a clie

[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27
Julian Leviston wrote: > Re: the API, why can't you use your browsers search feature? > Everything is on the one page - in frames. That's totally wacked. The API I am referring to involves quite a few seperate files in usr/local/lib/ruby/doc/. There would be not much purpose to frames if the

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Conrad Taylor
On Tue, May 19, 2009 at 8:57 AM, Jodi Showers wrote: > > Morgan - > > On 19-May-09, at 10:57 AM, Morgan Morgan wrote: > > > > > so.. > > > > I'm making a scheduler.. i have a table of scheduled and > > scheduleable > > hours for multiple users which needs to be turned into a view (with > > sche

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Mk 27
Morgan Morgan wrote: > it's basically just a calendar view from 8am to 12pm with colours for > each of the schedule types returned > > so it's a grid Can you change the model then? It sounds like something easier done the other way around, ie, you iterate through the things that are schedule

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Morgan Morgan
Julian Leviston wrote: > On 20/05/2009, at 12:57 AM, Morgan Morgan > > wrote: > >> against all the returned scheduleable and scheduled hours for those 7 >> > My suggestion is to drive things from the view requirements. What does > your view actually need to output? From there, work backwards t

[Rails] mysql date out of range

2009-05-19 Thread Herman Müller
Hi ruby community, I use ruby 1.8.6, rails 2.2.2 and mysql 5.045. In my scaffold I use "t.date :birthday". When I want to save a birthday like 12.05.1970 I can save it. But when I try to save older birthdays like 12.05.1969 I get the error-message "time out of range". Remarkable is, when I tr

[Rails] Re: development Windows or Linux?

2009-05-19 Thread Julian Leviston
That's so beautifully put! Blog: http://random8.zenunit.com/ Twitter: http://twitter.com/random8r Learn: http://sensei.zenunit.com/ New video up now at http://sensei.zenunit.com/ real fastcgi rails deploy process! Check it out now! On 19/05/2009, at 11:51 PM, John Small wrote: > > I started

[Rails] Re: sub-totals in tables

2009-05-19 Thread E. Litwin
Have you looked at the group_by method of Enumerable? "Collect an enumerable into sets, grouped by the result of a block. Useful, for example, for grouping records by date." On May 19, 6:57 am, John Small wrote: > How can I get sub-totalling in tables? > > I have an ActiveResource model which g

[Rails] Re: sub-totals in tables

2009-05-19 Thread Julian Leviston
On 19/05/2009, at 11:57 PM, John Small wrote: > > How can I get sub-totalling in tables? > > I have an ActiveResource model which gets it's data from a legacy > Windows app via REST. The records are ordered by date. I need to > display > subtotals by week number. It looks like I'll have to cod

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Julian Leviston
On 20/05/2009, at 12:57 AM, Morgan Morgan wrote: > > so.. > > I'm making a scheduler.. i have a table of scheduled and > scheduleable > hours for multiple users which needs to be turned into a view (with > schedule type as there are 4 different types) of 7 days of those > scheduled and sche

[Rails] Re: Annotate Models

2009-05-19 Thread Milan Dobrota
I'm already using the plugin. The thing is that the models are not in the app/model directory but they are located one directory down, like app/model/advertising The plugin expects models to be prefixed with Advertising:: namespace which is not the case. Is there any way to annotate them withou

[Rails] Re: choose language for Rails

2009-05-19 Thread Julian Leviston
Hi You can create your own generators... People may have already created ones for foreign languages - have a google. Blog: http://random8.zenunit.com/ Twitter: http://twitter.com/random8r Learn: http://sensei.zenunit.com/ New video up now at http://sensei.zenunit.com/ real fastcgi rails depl

[Rails] Re: Annotate Models

2009-05-19 Thread Jodi Showers
Milan - On 19-May-09, at 12:35 PM, Julian Leviston wrote: > > On 20/05/2009, at 2:08 AM, Milan Dobrota > wrote: > >> >> Is it possible to annotate models under app/models/some_directory if >> the >> models do not have SomeDirectory namespace? >> -- >> Posted via http://www.ruby-forum.com/. >> >

[Rails] Re: Rails Error explained?

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 8:45 AM, Mk 27 wrote: > Also very disappointed that a *web interface* API does not include a > search function (!), meaning I had to use grep "had to"? you meant "totally enjoyed the opportunity to", right? :-) Anyway, see: -- Hassan Schroeder -

[Rails] Re: page access denied.

2009-05-19 Thread Frederick Cheung
On May 19, 12:37 pm, Najam Alvi wrote: > Session ID: acbd4b9697b41f837ef990b0e2e0e807 > Parameters: {"action"=>"index", "controller"=>"reports"} > Rendering template within layouts/base > Rendering common/404 (404) > Filter chain halted as [:find_project] rendered_or_redirected. > Completed in

[Rails] Re: Rails Error explained?

2009-05-19 Thread Julian Leviston
On 20/05/2009, at 1:45 AM, Mk 27 wrote: > > Mk 27 wrote: > >> I can't seem to find any reference anywhere to an explanation of what >> these errors actually mean (perhaps it has to do with manually >> adding a >> view? The file just contains the words "Hello World"), altho there >> are >>

[Rails] Re: Annotate Models

2009-05-19 Thread Julian Leviston
On 20/05/2009, at 2:08 AM, Milan Dobrota wrote: > > Is it possible to annotate models under app/models/some_directory if > the > models do not have SomeDirectory namespace? > -- > Posted via http://www.ruby-forum.com/. > > > What do u mean by annotate? Blog: http://random8.zenunit.com/ Twit

[Rails] Re: how to handle javascript with watir

2009-05-19 Thread Mk 27
Lucas wrote: > html code: > > document.write(' type="password" maxlength="20" size="32" tabindex="2"/>) > Someone warned me yesterday that the language="javascript" part is deprecated and should no longer be used. So I thot I'd pass that on. But

[Rails] Annotate Models

2009-05-19 Thread Milan Dobrota
Is it possible to annotate models under app/models/some_directory if the models do not have SomeDirectory namespace? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: Anyone here move from .NET?

2009-05-19 Thread Marnen Laibow-Koser
Frederick Cheung wrote: [...] > Ignoring the specific technologies, having another tool in your > toolbox is rarely a bad thing, plus learning new stuff is fun. Yes. Also: * Ruby is an extraordinarily well-designed programming language. * Windows is a completely broken OS. That goes double fo

[Rails] Re: Speed up recursive loop or get rid of it?

2009-05-19 Thread Jodi Showers
Morgan - On 19-May-09, at 10:57 AM, Morgan Morgan wrote: > > so.. > > I'm making a scheduler.. i have a table of scheduled and > scheduleable > hours for multiple users which needs to be turned into a view (with > schedule type as there are 4 different types) of 7 days of those > scheduled a

[Rails] Re: IRB fails to call some shell commands only on Windows

2009-05-19 Thread Umur Ozkul
Matt Jones wrote: > Have you tried invoking gem as `gem.bat --version` in IRB? There's a > special case in the config.gem installation code for win32, so I'd > guess that that might solve your problem... > > --Matt Jones > > On May 19, 6:32�am, Umur Ozkul Yes, I tried. gem.bat itself is invok

[Rails] Re: How to automatically Create a new page each day?

2009-05-19 Thread Marnen Laibow-Koser
Colin Law wrote: > What do you mean by 'create a new page for each day'? > Colin This is the $64,000 question. If "create a new page each day" just means "respond to URLs with a date in them" or "display today's content", then there is no need for a cron job and the date can just be processed

[Rails] Re: Anyone here move from .NET?

2009-05-19 Thread Frederick Cheung
On May 19, 4:21 pm, 8bit wrote: > What are your feelings on this?  Have you moved from .NET to RoR? > Windows to Mac?  Why?  It's a challenge I would like to take on but I > want to be smart about it too.   http://www.softiesonrails.com/ is by people who made that jump (and now do training etc.

[Rails] Re: bug adapter firebird 2.1.2 ?

2009-05-19 Thread Mariarosaria Trovato
Gianluca Tessarolo wrote: > Ok ho visto... > > mi sembra che stai comprando l'errore con versioni diverse dei vari > camponenti: > > windows (ok) => FireBird 2.0 + activerecord-firebird-adapter + FireRuby > linux (errore) => FireBird 2.1 + fb_adapter + fb > > Magari sto dicendo una cosa ovvia o

[Rails] how to handle javascript with watir

2009-05-19 Thread Lucas
html code: document.write(') my question: how to locate the password field with watir? --~--~-~--~~~---~--~~ You received this message because you are subsc

[Rails] choose language for Rails

2009-05-19 Thread tivrfoa
Hi! Is there someway to choose the language when creating a scaffolding, like portuguese or spanish. Otherwise I have to change, like New -> Nuevo It is not a big problem, but it would be nice. Thanks in advance! --~--~-~--~~~---~--~~ You received this message b

[Rails] Re: How to automatically Create a new page each day?

2009-05-19 Thread sanjib dhar
My idea is 1. put one shell script file to create the page which will run every day at 12:01 am. 2. name the file as today's date. 3. display the file named as todays date. Simple! On Tue, May 19, 2009 at 12:58 PM, Colin Law wrote: > What do you mean by 'create a new page for e

[Rails] Anyone here move from .NET?

2009-05-19 Thread 8bit
Up to this point I have been knee-deep in .NET - ASP.NET, VB.NET, C# and starting to look into Silverlight 3 Beta. I've been using the .NET platform for 5+ years now. It's really nice, I don't have a lot of bad things to say about it. Currently I'm a one-man shop. I have a few .NET clients tha

[Rails] Re: Rails Error explained?

2009-05-19 Thread Mk 27
Mk 27 wrote: > I can't seem to find any reference anywhere to an explanation of what > these errors actually mean (perhaps it has to do with manually adding a > view? The file just contains the words "Hello World"), altho there are > a few old posts about how to "turn it off". Well adding this

[Rails] Re: Deploying Rails App on Debian Etch / Apache2 / Passenger

2009-05-19 Thread César
Is good know that you solved that and wich was the problem, it is a good feedback . It could help maybe another person to not do the same mistake. Cesar ___ Gnu/Linux count user #416024 Pagina

[Rails] Re: Reg:Url Encryption

2009-05-19 Thread Marnen Laibow-Koser
charan wrote: > Hi > > I need to pass params through url.which should be done in an encrypted > way .. > > is there any methods to solve this.. Yes, but I'm not sure that this is a particularly good idea (you might consider SSL instead). If you can explain why you think you need to do that,

[Rails] Speed up recursive loop or get rid of it?

2009-05-19 Thread Morgan Morgan
so.. I'm making a scheduler.. i have a table of scheduled and scheduleable hours for multiple users which needs to be turned into a view (with schedule type as there are 4 different types) of 7 days of those scheduled and scheduleable hours for multiple users.. right now i've a loop which iter

[Rails] Re: Deploying Rails App on Debian Etch / Apache2 / Passenger

2009-05-19 Thread karl
hey guys, I'm very thankful for your help. after inspecting rubygems myself and going down the whole way again, i figured that I accidently capitalized the gem name :-( Now everything seems to run.. On 19 Mai, 16:13, pharrington wrote: > Are you using Ruby Enterprise Edition? What is PassengerRu

[Rails] Re: piping bounced emails to rails script

2009-05-19 Thread Matt Jones
Two things - the | character should be inside the quotes. And, take a look at this: http://forum.symfony-project.org/index.php/m/26063/ for discussion on getting a similar setup running (postfix needs to be delivering as a user other than nobody). --Matt Jones On May 18, 4:38 pm, rcs wrote: >

[Rails] Re: IRB fails to call some shell commands only on Windows

2009-05-19 Thread Matt Jones
Have you tried invoking gem as `gem.bat --version` in IRB? There's a special case in the config.gem installation code for win32, so I'd guess that that might solve your problem... --Matt Jones On May 19, 6:32 am, Umur Ozkul wrote: > http://conceptspace.wikidot.com/forum/t-154517/rails101-gettin

[Rails] Rails Error explained?

2009-05-19 Thread Mk 27
I just got my first error, "ActionController::InvalidAuthenticityToken". I can't seem to find any reference anywhere to an explanation of what these errors actually mean (perhaps it has to do with manually adding a view? The file just contains the words "Hello World"), altho there are a few old

[Rails] Re: Pinax for Rails

2009-05-19 Thread Martin Streicher
James may be talking about projects such as Bort that intend to bootstrap a Rails project with all the basic pieces (authentication, confirmation emails, openID, etc.) in place. On May 15, 4:37 pm, pe3 wrote: > Pinax (http://pinaxproject.com) is a great Django project. What are > the three simi

[Rails] Re: Payment gateway implemantation.

2009-05-19 Thread Salil Gaikwad
> But you might want to look for a more Apache specific group to be > asking questions like that, like alt.apache.configuration. Thanx for your quick reply. Regards, Salil -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Re: Deploying Rails App on Debian Etch / Apache2 / Passenger

2009-05-19 Thread pharrington
Are you using Ruby Enterprise Edition? What is PassengerRuby set to in your Apache configuration? Which version of Ruby is being invoked from the shell (run "which ruby")? On May 19, 10:00 am, karl wrote: > Changed all the permissions, set path etc. but no changes yet... > > On 18 Mai, 22:14, Ma

[Rails] Re: Deploying Rails App on Debian Etch / Apache2 / Passenger

2009-05-19 Thread karl
Changed all the permissions, set path etc. but no changes yet... On 18 Mai, 22:14, Marc Byrd wrote: > While I don't recommend this as a long-term solution, it should help know > whether this is the issue (make a backup first w/ current permissions): > > chown -R www-data:www-data /usr/lib/...gem

[Rails] sub-totals in tables

2009-05-19 Thread John Small
How can I get sub-totalling in tables? I have an ActiveResource model which gets it's data from a legacy Windows app via REST. The records are ordered by date. I need to display subtotals by week number. It looks like I'll have to code something, which isn't a problem, but this is such a common p

[Rails] Re: Problems with upload using attachment_fu

2009-05-19 Thread Nerdaniel
I tryed and still the same. =/ On May 19, 8:19 am, Franco Catena wrote: > The file field must be named "uploaded_data", try with that. > > Regards. > > Franco Catena. > > On May 19, 12:48 am, Nerdaniel wrote: > > > Hello everyone, > > > I'm having problems with :html => { :multipart => true } i

[Rails] Re: development Windows or Linux?

2009-05-19 Thread John Small
I started developing Ruby on Windows and soon realised that if I was going to deploy anything I'd be better off switching to Linux/Mac. As I had a spare machine I just installed Ubuntu and set to work going up the learning curve. It was pretty steep at first because my Ubuntu didn't like the o

[Rails] logging with the daemons gem

2009-05-19 Thread Karl Baum
I am trying to leverage the daemons gem but I am confused about the proper way to set up logging. I am able pass options which configure stdout to go to a log file but it seems like all calls to Rails.logger are disabled as I see the following message in my output: usr/local/lib/ruby/gems/

[Rails] Re: Reg:Url Encryption

2009-05-19 Thread Tim Riendeau
___ Sent with SnapperMail www.snappermail.com .. Original Message ... On Tue, 19 May 2009 04:03:37 -0700 (PDT) charan wrote: >way .. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Re: Payment gateway implemantation.

2009-05-19 Thread pharrington
Sounds like your httpd.conf is missing Listen 80 But you might want to look for a more Apache specific group to be asking questions like that, like alt.apache.configuration. On May 19, 9:04 am, Salil Gaikwad wrote: > Hi all, > I am having trouble in implementing payment gateway in my applicatio

[Rails] Payment gateway implemantation.

2009-05-19 Thread Salil Gaikwad
Hi all, I am having trouble in implementing payment gateway in my application on joyent server. I need to configure 'http//' url for normal methods and 'https//' for secured methods. For this functionality we need to have two ports on Apache server, port:80 and port:443. When i configure both of t

[Rails] Re: development Windows or Linux?

2009-05-19 Thread César
I think that linux is really good environment to work in web development and it has a lot of support from the comunity to solve problems quickly. Maybe you need try a little how to install a linux distro and some packages before start with a Rails application over linux. I recommend you if you do

[Rails] page access denied.

2009-05-19 Thread Najam Alvi
Hi, I recently start working on rails. I am writing a plugin for redmine, right now I am in the start phase. I successfully got the menu display as "custom reports" but problem starts when I click the cutom reports menu. The error generated is: "The page you were trying to access doesn't exist

[Rails] RJS and different views

2009-05-19 Thread Adam Akhtar
I have Results Controller. It has an index action with a corresponding index view. In the view their is a search form which is sent to a search action in the same controller. I wanted to seperate this from the index action because its pretty heavy and involves backgroundrb, scraping etc. Once the

  1   2   >