On Jul 6, 1:53 pm, JannaB wrote:
> Then would the following be a problem in a controller if concurrent
> users use the app at the same time ?
>
> socket = TCPSocket::new(@channel.serverip,
> @channel.port)
> socket.send(s+"\n",0)
> socket.close
>
> (multiple servers I am no
On Jul 6, 4:56 pm, "Älphä Blüë"
wrote:
> If I comment out the debug lines and uncomment what's listed above the
> following occurs:
>
> Firefox:
>
> If I check the box the partial is rendered. If I uncheck the box, the
> partial is removed.
>
> Internet Explorer:
>
> If I check the box, nothin
On Jul 8, 4:28 pm, Beta wrote:
> The import_fixtures fails, and I've read that the new way to do this
> is with ActiveSupport::TestCase. But if I change
> Test::Unit::TestCase by ActiveSupport::TestCase, I get the error
>
> NoMethodError: undefined method `get' for # 0xb7cbd560>
>
> What can it
On Jul 9, 9:42 am, Pål Bergström
wrote:
> Rick Denatale wrote:
> > On Wed, Jul 8, 2009 at 5:25 PM, Colin Law wrote:
>
> > Another options is to put rails 2.3.2 into the app structure itself:
>
> > On the development machine
>
> > rake rails:freeze:gems
>
> I might do this. What about updates? Wi
On Jul 9, 9:59 am, Pål Bergström
wrote:
> Rick Denatale wrote:
> > On Wed, Jul 8, 2009 at 5:25 PM, Colin Law wrote:
> > rake rails:freeze:gems
>
> A possibly stupid question, but why do I get a .gem directory in my home
> directory when I do freeze? Well I get the idea, but why not keep the
> .
On Jul 9, 1:43 am, Madhu kanikanti wrote:
> Hi,
> while generating the PDF file , i am getting following error..
> please help for me.
>
That sounds like the jpeg file you gave the library didn't look like a
jpeg file.
Fred
> RuntimeError (JPEG marker not found!):
> C:/Ruby/lib/ruby/gems
On Jul 9, 3:18 pm, "Älphä Blüë"
wrote:
> This works great for protecting my pages and allowing me to perform many
> administrative functions live on the site. However, one potential issue
> that I see is as far as user administration.
>
> I've made it so that I can edit/update users through my a
On Jul 9, 3:32 pm, "Älphä Blüë"
wrote:
> Frederick Cheung wrote:
>
> Thanks for the clarification Fred. So, how would I implement this in my
> edit view template? Or, are you stating it can't be done there but
> somewhere else?
>
It's nothing to do with
On Jul 9, 1:17 pm, JannaB wrote:
> I have a partial that has a button_to_remote on it wherein a method in
> my controller is appropriately executed. In the same partial, but not
> in any I have a select box with the id of "notesboxselect."
>
> Is there any way I can pass the text of what is in
On Jul 9, 2:56 pm, jhaagmans wrote:
> Hi,
>
> I have a check_box and on activating it, I want an extra field to show
> up.
>
> I thought I'd do this by calling a remote_function called "toggle"
> in :onchange. In toggle.rjs, I'd do something like page.toggle and
> have the visibility toggled. I
On Jul 9, 4:44 pm, JannaB wrote:
> Anyone have an idea how I can shoehorn (or workaround) a
> submit_to_remote to accept html options so that I might put an image
> to it?
if you do submit_to_remote blah, blah, :html => {...}
then that options hash is passed to button_to_remote (and thus
but
On Jul 9, 8:57 pm, JannaB wrote:
> Fred,
>
> I thnk you may be wrong on this (for once!) -or-, more likely, I cant
> find the right hash key for the image (I'm unable to discern the
> correct syntax).
> For example, the following works, but, my problem is that it doesn't
> pick up the values of
On Jul 9, 8:20 pm, michael_teter wrote:
> Howdy.
>
> I've got an overridden to_xml() function in one of my models that
> appears to be very slow. As a relative Ruby novice, I would love to
> hear suggestions on how to improve the performance. Incidentally, I
> was using the default to_xml() p
On Jul 10, 9:36 am, Shahin Kordasti
wrote:
> .
>
> So it seems Visual Studios compiler is not compatible with whatever
> compiler is needed to build system_timer and this is where I am stuck.
> Where do I find a suitable C compiler for windows to build system_timer?
> Or is there some other way
On Jul 10, 10:49 am, Dave Smith
wrote:
> Hi Folks,
>
> Real easy one for you probably. I'm just trying to split an array in
> half into 2 separate arrays that I can loop through and have seen the
> Partition method. Can anyone give me an example of how to use this, as I
> don't quite understand
On Jul 10, 1:25 pm, Sijo Kg wrote:
> Hi In my machine there is Ruby1.8.6 ,1.9.1 and rails 2.3.2 And I created
> a new project using Ruby1.9.1 and rails 2.3.2 But when did
> ./script/about it shows
> Ruby version 1.8.6 (i386-linux)
> RubyGems version 1.3.1
>
> Why this h
On Jul 10, 6:56 am, Whiplash wrote:
> As you can see by the following console output, the parameters are
> being posted properly, but for some reason they are not being entered
> into the database. I'm not doing any validations or anything else. I'm
> also not receiving any errors.
>
> What's
On Jul 10, 4:46 pm, Whiplash wrote:
> @motorcycle= Motorcycle.new
> @motorcycle.make = params['make']
> @motorcycle.model = params['model']
> @motorcycle.year = params['year']
> @motorcycle.save
>
> And that works!
>
> So my question becoms, why do I have to manually assign the parameters
> wh
On Jul 10, 10:13 pm, Julia Lovel
wrote:
> User name:
> <%= text_field("userform", "user_name",:size=>"20" ) %>
> Password:
> <%= password_field("userform", "password",:size=>"20" )
> %>
> <%= javascript_include_tag :defaults %>
> <%= submit_tag 'LOG IN', :onclick =>remote_function(:url =>
> {
On Jul 11, 9:20 am, Michael wrote:
> I'm a new and I find that I can't post message ,just for a try
Because, like it says at the top of the google groups page, if you are
posting for the first time it may take a few hours before your message
gets approved.
Fred
--~--~-~--~~---
On Jul 11, 5:09 am, JannaB wrote:
> I'm stumped here -- well aware that link_to_remote is intended to do
> something other than what I am trying to use it for. You see, I need
> to create a sort of button, that takes an image and that has different
> looks (css styles, depending upon the state
On Jul 10, 11:17 pm, Bob O wrote:
> does anyone know how i can make dynamic paths?
>
> say i had a partial for maybe an index list, but i want the link to
> the show page to be dynamic so im able to use the partial for may
> objects.
>
> <%= link_to "show", "#{object}" + _path(object) %>
>
> so
27;d very much recommend
that you start by working out exactly why things aren't working)
Fred
>
>
>
> Frederick Cheung wrote:
> > On Jul 10, 10:13 pm, Julia Lovel
> > wrote:
>
> >>
> >>
>
> > Because you're just using an onclick on the
On Jul 11, 2:08 am, Jim Lum wrote:
>
> > Quite frankly, I don't know if this is some problem in the lighttpd
> > configuration, or with RoR, but the error in production.log above seems
> > to indicate, I think, that Rails can't find the public/dispatch.fcgi,
> > but that file is definitely ther
On Jul 11, 3:56 pm, JannaB wrote:
> Fred, I put the whole div with the link_to_remote's in it's own
> partial:
>
>
> <% if @channel.floorfrozen != 0 %>
> <%= link_to_remote image_tag("/images/icecube.gif"), {:url =>
> {:controller => 'channels',:action => 'freezer', :update =>
> 'buttonrak1'}
On Jul 11, 3:16 pm, "Älphä Blüë"
wrote:
> My setup:
>
> class Team
> has_many :schedules
> end
>
> class Schedule
> belongs_to :team
> end
>
> Teams Controller:
>
> @team = Team.find(params[:id])
> @team_id = params[:id]
> @schedule = Schedule.list(@team_id)
>
> Schedule Model:
>
> def self
On 11 Jul 2009, at 17:55, Rick wrote:
>
> On Sat, Jul 11, 2009 at 12:30 PM, Frederick
> Cheung wrote:
>
>>> Now I want to retrieve the team_id for the (opponent) inside the
>>> schedules table. Each team plays approx. 12 opponents. So, I would
>>> li
On Jul 11, 6:34 pm, "Älphä Blüë"
wrote:
> Another query should be made against each opponent returned within the
> first query finding their subsequent ID in the teams table.
>
> How would I implement such a query? Define each returned opponent as a
> param? Pass the param to another method wit
On Jul 11, 5:55 pm, "Älphä Blüë"
wrote:
> > Creating a named scope on the fly like that is really rather odd (and
> > completely unnecessary). i'm also not sure why you don't just do
> > @schedule = team.schedules.find :all, :order => '...'
> > If you want you can add a named scope on schedules
On Jul 11, 7:33 pm, "Älphä Blüë"
wrote:
>
> class Team
> has_many :schedules
> has_many :opponents :through => :schedules
> end
>
> class Schedule
> belongs_to :team
> end
>
> Is that correct?
>
you'll also want an opponent association on Schedule (as rick
suggested - don't forget the clas
On Jul 11, 11:19 pm, cnk wrote:
> I would like to selectively reuse some data. I have two groups of
> people who want very similar information about subject experts - but
> they want slightly different fields and/or want to see the other
> group's information but should not be able to edit it.
On Jul 12, 8:00 am, Nurzed Lkham
wrote:
> I'm getting this error on Ubuntu 9.04 when trying to run this simple
> Rails application. How to solve this error?
>
You need the ruby openssl bindings (if you installed ruby via apt then
you can also install them via apt (called something like libopens
On Jul 12, 4:09 am, Josh wrote:
>
> After looking into conversions.rb. It appears that rails thinks of
> time as a datetime and this doesn't seem proper, especially when Date
> does not. Why should a random date be assigned to the time?
>
> I'll happily make a patch, but I thought to ask if there
On Jul 12, 8:06 am, rockrep wrote:
> We have an issue where we are using RJS templates to render the
> results of Ajax calls. Everything works fine so long as the user
> waits for the render to occur. However, if the user initiates the
> request and the RJS template is still in the process
On Jul 12, 10:17 am, Fresh Mix
wrote:
> ...
> RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
> ...
>
> # ./script/generate controller test
> Missing the Rails 2.3.2 gem. Please `gem install -v=2.3.2 rails`, update
> your RAILS_GEM_VERSION setting in config/environment.rb for the R
On Jul 12, 7:15 pm, Eric wrote:
> On Jul 12, 10:19 am, "Älphä Blüë"
> wrote:
>
> > > But the variable is unnecessary, and in fact, a more concise way of
> > > saying the same thing would be
>
> > > if Model.find(:all).empty?
>
> > Agreed. I was just showing that there are more ways of doing t
On Jul 12, 8:02 pm, Jim Burgess
wrote:
> Hi,
>
> I have two select lists in my app called 'topic' and 'member'.
> Based on what I select in topic, member is populated accordingly (using
> java script).
> eg. If I select 'subject1' in topic, member should be populated with the
> values 'prof x',
On Jul 12, 3:43 pm, pepe wrote:
> When a user is retrieved for access and functionality validations, I
> re-retrieve the user through the specific user class as in:
> user = User.find(...)
> # The user is found and passes validations.
> # Now I re-retrieve it through the specific user clas
On Jul 12, 11:47 pm, Mark Preston
wrote:
>
> Mystuff#index
> <%mystuff.each do |mr|%>
> mr.m1
> <% end %>
>
if you want to display the result of a ruby expression (eg one of your
attributes) then you need to use <%= ... %> (don't forget to use h to
escape nasties (if appropriate))
Fred
> Than
On Jul 13, 12:36 am, Buzz Hill
wrote:
> class PaymentType < ActiveRecord::Base
>
> def self.get_payment_types
> payment_types_all = find(:all, :select => "display_name,
> stored_name" , :order => :display_name)
> # Creates a nested array of [[display_name,
> stored_name],[display_name
On Jul 13, 12:38 am, Mark Preston
wrote:
> �...@my = Mystuff.find( :all)
This
> Mystuff#index
> <%me.each do |mr|%>
and this need to match - the instance variables are copied over for
you.
Fred
--~--~-~--~~~---~--~~
You received this message because yo
On Jul 13, 12:55 am, Mark Preston
wrote:
> I got it to work by changing my method in the mystuff_controller to look
> like this:
>
> require 'Mystuff'
>
> class MystuffController < ApplicationController
>
> def index
>
> �...@my = Mystuff.find( :all)
>
> end
> end
>
> The only
On Jul 13, 1:04 am, Brian wrote:
> This is a two part question. Which type of locking should I use
> (optimistic vs. pessimistic) and then how do I account for locking in
> my tests?
>
> My scenario is essentially the purchase of a unique item where the
> first person to click "Buy" gets the i
On Jul 13, 2:12 am, Nathan Beyer wrote:
> I have a simple controller that takes a request, looks up some data
> and then returns the results as either HTML or Atom. The HTML response
> works fine, but the Atom Builder is blowing up with an undefined
> method error that I can't figure out. It se
On Jul 13, 4:01 am, 刘子嘉 wrote:
> Could someone help me to solve my problem?I'm using named_scope,and there
> seems to be a little problem...
> Can I sort a model by another model's column?For example,I have a "users"
> table,it has a "value" column.And in the user.rb:
> has_many :articles
>
You
On Jul 13, 3:02 am, Rick wrote:
> On Sun, Jul 12, 2009 at 9:50 PM, JangoSteve wrote:
>
> Good point, about saving the games first, but I'm curious, what the
> heck is going on that I can't seem to get match to save even with
> those game save lines commented out (as above.) I'm just trying to ge
On Jul 13, 2:41 am, Marnen Laibow-Koser wrote:
> Conrad Taylor wrote:
>
> [...]
>
> > I agree with Fred's approach because if you're testing for emptiness,
> > you
> > should do the least amount of work to determine it.
>
> Excellent point.
>
> > For example,
>
> > Model.first => will creat
On Jul 20, 11:20 pm, Learn By Doing wrote:
> Hi David,
>
> The reason I need to redefine the assignment and make it private is
> that because whenever x is assigned a new value, some other processes
> must take place:
Why not override x= then rather than inventing a new set_x method ?
>
> def
On Jul 20, 9:32 pm, Mike C wrote:
> 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?
as long as your app's database.yml has the the port, ip address
etc... of the instance of mysql you want it to use everythi
On Jul 21, 12:02 am, "David A. Black" wrote:
> You can do this and get, by coincidence, something like the desired
> effect:
>
> def x=(val)
> super
> # do other stuff
> end
>
> because the call to super will trigger AR::B#method_missing, but the
> more I look at it and play arou
On Jul 21, 5:24 am, Rails List
wrote:
> Let us say, I have a page with couple of links and i would like to send
> unique flag/variable settings through params for each these links when
> they are clicked.
>
> For example:
>
> A link clicked - flag 'a' sent
> B link clicked - flag 'b' sent
>
> T
On Jul 19, 9:56 pm, Carl Franz
wrote:
> Well, I started a completely new application and I built two models
> using the 'script/generate scaffold' and am still having the problem.
>
> Version/Environment is still:
> Windows XP rev3
> Ruby - 1.8.6
> Rails - 2.3.2
> Rake - 0.8.7
> mysql - 5.0.51
On Jul 21, 3:47 pm, David Sousa
wrote:
> Hello there,
>
> I have a code like.
>
> ...
> items = entries.map { |entry| content_tag("li", mask, :id =>
> "#{entry.id}")}
> ...
>
> I want to evaluate the ruby code in the string mask on the fly... it
> content is:
> "#{entry.name} - #{entry.state.na
On Jul 22, 10:39 am, Javier Quevedo wrote:
>
> After that, I loop through the images array to get and copy all of the
> image files.
> I must insist that before throwing the exception, the files are
> actually copied.
Could you show the entire code - it's hard to say much from the
fragments yo
On Jul 22, 12:31 pm, Tamilselvi Srinivasan wrote:
> Thanks for the quick reply,
> Am getting the radio button options from answers table. also its a group
> of radio buttons.
> so the count means for the radio_button id. if i change the count as
> follows
>
> <%=radio_button(:survey, :nominees,
On Jul 22, 1:51 pm, Thomas Allen wrote:
> Is what I'm attempting possible with render :partial?
>
Have you checked with firebug to see what is actually going back and
forth between the browser and the server ? (fun issues like the
browser helpfully autocompleteing the new fields for you ?)
Fre
On Jul 22, 8:38 pm, Alexey Petrushin wrote:
>
> The problem is here (config/development.rb):> config.cache_classes = false
> if i change it to
> >config.cache_classes = true
>
> it works really fast.
>
> So i hoped maybe there is a way to reload it more rarely.
There's nothing builtin - doesn'
On Jul 22, 11:22 pm, Carl Franz
wrote:
>
> Thany you Fred, now that I understand, that appears to be what it is
> doing. Is there any relatively simple way to disable this behaviour in
> 'migrate'?
not without changing the rails sourcecode. easiest way is probably to
unset that environment va
On Jul 22, 10:05 pm, Tyler Knappe
wrote:
>
> The problem here is when accessing @devices_array in the view
> @devices_array is nil. I *know* the code is being executed in
> initialize_devices because if I don't redirect to show_all_devices I can
> manipulate the @devices_array within the init
On Jul 23, 5:11 am, Mark Preston
wrote:
> So I made the following changes:
>
> <% form_for @post, :url => post_path %>
> <%=h post.m1 %>
> <%= link_to 'New post', new_mystuff_path %>
> <% end %>
>
> and now get this error:
>
> You have a nil object when you didn't expect it!
> You might have e
On Jul 23, 9:07 am, Zhenning Guan
wrote:
> I don't know what exactly raise work for. it seem redirect_to has the
> same functionality. well, I know I must be missed something. so anyone
> show some examples?
redirect_to makes rails generate an http redirect response (which
tells the browser to
On 23 Jul 2009, at 12:20, Indu RS wrote:
>
> Hello everyone,
>
>
> I forced to use @user = User.find_by_sql sql_query in a particular
> situation in my project. Now I want to paginate the records. How can I
> paginate the records?
will_paginate etc. can help you with the view helpers on stuff
On Jul 23, 12:01 pm, Mariusz Wojtysiak wrote:
> Questions are:
> 1. Why --with-opt-lib adds entry to -L ?
because that's what it's supposed to do: it's for telling extconf
"here is an extra path to search for libraries"
>
> 2. How to add additonal library (krb5), which should be linked to
> na
On Jul 23, 2:37 pm, sultan wrote:
> In config/environments/production.rb the comment says
> # Code is not reloaded between requests
> config.cache_classes = true
> Where does RoR store cache_classes code?
That stuff is in ActiveSupport::Dependencies
Fred
--~--~-~--~~~-
config.cache_classes = false
> > > and I run “ruby script/server -e production”
> > > I can see my new changes.
>
> > > When I change the /config/environment/production.rb back to:
> > > config.cache_classes = true
> > > and kill and restart the se
On Jul 23, 10:00 pm, Conrad Taylor wrote:
> On Thu, Jul 23, 2009 at 7:28 AM, Mariusz Wojtysiak
> wrote:
> > I also installed on my Ubuntu libpgsql-ruby package, which contains
> > pg.so in /usr/lib/ruby/1.8/i486-linux.
> > But I have no idea how to force "gem install ruby-pg" to use pg.so
> > in
On Jul 24, 8:32 am, vimal wrote:
> Hi,
>
> I have a licenses controller. Other than a new method, i have a
> new_trial_license method.
>
> The link implementation for the new_trial_license method looks like:
> ---
> --
On Jul 24, 8:56 am, Mariusz Wojtysiak wrote:
> > I'm not so sure about that. What this means is that the test program
> > that tried to test linking against libpq failed to compile. Most
> > obviously this would be because libpq can't be found but doesn't look
> > like it in this case. Like I s
On Jul 24, 8:56 am, Mariusz Wojtysiak wrote:
>
> Yes. That could be a solution. But this package installed only /usr/
> lib/ruby/1.8/i486-linux/pg.so library and some documents. None rb
> script was installed! I feel that without .rb scripts I cannot use
> ruby-pg adapter in my rails.
>
Not neces
On Jul 23, 9:52 am, Max Williams
wrote:
> vlain wrote:
> > Wrap variables around <%= %> inside double quote
> > e.g.
> > for(var j=0; j < "<%=locations.length%>"; j++)
>
> > On Jul 22, 4:17 pm, Nilesh Kulkarni
>
> As a slightly more general solution, rather than wrapping the "" around
> the er
On Jul 24, 4:05 pm, "C, D." wrote:
> Now whenever I want to display this value read-only in one of my views I
> cant simply do <%= @model.description %>. This will cause the text to be
> printed as:
> 'This is line one.This is line two'
>
> How do I get the text to be displayed correctly with,
On Jul 24, 4:31 pm, Sam Matt wrote:
> Hi All,
> I am new to ROR and I am experiencing a few problems viewing my first
> app. Can anyone pls help me to get my first app up and running?
>
> I created a rails application called my_app. I created a controller
> called hello.
>
> It looks somethi
On Jul 24, 7:17 pm, Brian Piercy wrote:
> I've been playing with RoR for about 2 years. Bought all the books,
> built prototypes for at least a dozen apps, follow the online
> discussions, and have a good basic understanding of things.
>
> The challenge is that SW design hasn't been my full tim
On Jul 24, 7:30 pm, muckypup wrote:
> Hey
>
> I'm new to Rails, and I was wondering if there was a way to include
> custom javascript libraries in the HTML views? I've been searching for
> a while and can't seem to find any way to do this.
>
> For example, I want to have some javascript functio
On Jul 27, 2:23 am, jd wrote:
> Hi.
>
> I'm currently writing a plugin, which "could" be a patch in that it
> must override a private method of ActiveRecord API, in
> ActiveRecord::Dirty, to work smoothly. To make a long story short,
> this plugin aims at enabling serialization with Marshal inste
On Jul 27, 4:21 am, Me wrote:
> I have this basic code in place and it is giving me an:
> "undefined local variable or method `end_form_tag' for
> #"
>
Because end_form_tag was removed from rails 2.0
Fred
> Note sure why I am getting the error as it is straight
> from:http://railsblaster.wor
On Jul 27, 5:41 am, Hans Hartmann
wrote:
> Hi there,
>
> I'm storing serveral values in my database through collection_select.
> Saving the value works fine but getting the saved value by using the
> update-form and setting it as "default-selected" doesn't work.
>
> I tried :selected and :inclu
ection_selct.
>
not sure collection_select takes a similar option. Given that it reads
the current value out of the associated model object you could just
set it there.
Fred
> Thx
>
> Frederick Cheung wrote:
> > On Jul 27, 5:41 am, Hans Hartmann
> > wrote:
>
On Jul 27, 1:28 pm, Ritvvij wrote:
> Hi,
>
> I know this ones a dumb question. I wanna create a blog and store the
> article in DB. it can be HUGE text.
>
> Can someone please mention the data type in rails and its equivalent
> in my sql is generally used?
You want a text column
Fred
--~--~--
; 1. varchar 2000 / 4000 ...
> 2. clob blob
>
> On Jul 27, 12:41 pm, Frederick Cheung
> wrote:
>
>
>
> > On Jul 27, 1:28 pm, Ritvvij wrote:
>
> > > Hi,
>
> > > I know this ones a dumb question. I wanna create a blog and store the
> > > article
On Jul 27, 3:35 pm, CiriusMex wrote:
> Hi folks ^^
>
> Ok think it's gonna be pretty easy but can't find any solution on
> internet...I need to get the client local time in order to get
> database informations in function of the client time and not the
> server one. How can I do with RoR?
You'
On Jul 27, 5:45 pm, Greg Willits
wrote:
> I had a working 1.2 app which I have just updated to 2.3.2 -- mostly
> seems good so far, but the Rails technique for booleans is acting up.
>
> MySQL column = `childSensitiveCase` varchar(1) NOT NULL default '0'
as long as I remember, with mysql rails
On Jul 28, 5:17 am, Rajendra Bayana
wrote:
> hi i am using technoweenie-restful-authentication plug-in for
> authentication in my application. i want to send a activation link to
> the user's mail-id.
> for that i need to set the smpt server for our rails application, for
> that i added the fol
On Jul 28, 1:04 am, MRG46 wrote:
> Hi
>
> I'm brand new to RoR and just started the intro tutorial.
>
> When trying to set the application home page like this:
>
> http://guides.rubyonrails.org/getting_started.html#setting-the-applic...
>
I don't think it's a factor here, but you are following
On Jul 28, 3:38 am, NEO wrote:
> Hi. When after runnig scaffold script server command I run the "rake
> db:migrate", it displays no such sqlite found. I have already bound
> the sqlite with ruby successfully and yet it displays error.. Please
> help me.. thanks
What error ?
Fred
--~--~---
On Jul 28, 6:14 am, Victor Martin
wrote:
> Nobody knows? I'm still stuck in this thing :(
Have you tried using firebug to work out what is going on ?(eg is the
partial that is inserted mangled in some way ?)
Do also check that all the dom elements you think should exist are
actually there and
On Jul 28, 2:47 am, Drr wrote:
> Hi, I am quite new to rails and can't use any rjs-templates.
> The problem is, that he can't use/find the methods in that template
> e.g. 'page' or 'replace_html'. I get an error message on these
> methods.
>
What error message ?
Fred
--~--~-~--~--
On Jul 28, 8:30 am, Victor Martin
wrote:
> Frederick Cheung wrote:
> >
> Hi Fred,
>
> I've got this error from firebug when I click on the "Add new group"
> link:
>
> "missing } after property list"
>
> But I don't know what to
On Jul 28, 10:09 am, Ritvvij wrote:
> Hi,
>
> I have a fyle object which is using paperclip plugin to store filz.
> I want of ofcourse download the file from the application.
> Now the problem I face is my application is not being able to find the
> function send_file
send_file is a controller
On Jul 28, 7:50 pm, "Simon Macneall" wrote:
> What's the rational behind using initializers instead of environment files?
> We are (and have been for some time) setting the smtp options in the
> environment files with great success.
>
That rather than having environment.rb become a dumping g
On Jul 29, 2:05 am, jask wrote:
> I have the following tables
> teams
> id :string
> name :string
>
> and
>
> matches
> id:
> home_team :team_id
> visitor_team :team_id
>
> how can I reflect that kind of relationship in a RoR model?
> thanks and keep up the good work.
See
http://www.spacevati
On Jul 29, 12:40 am, Greg Willits
wrote:
> And using <%= debug(flash) %> display an empty hash.
>
> This just seems too simple to not work, and it worked just fine with
> Rail 1.2.
>
> Has something changed? Somethig that didn't interfere and reset the
> flash in 1.2 that now does?
Session handl
On Jul 29, 11:37 am, Craig White wrote:
> I am very frustrated with :joins in a find.
>
> �...@debts = Debtortranstaxes.find(:all,
> :conditions => ["trandate > ? and trandate <= ?", @per1, @per2],
> :joins => 'LEFT JOIN debtortrans ON debtortrans.id=debtortransid',
> :order => 'trandate,
On Jul 30, 9:54 am, D wrote:s:
>
> def move_stu
> Enrollment.update_all(["course_id = ?", id ], :student_id => params
> [:student_ids])
>
> ##
> end
>
> but all that passes in is a random 8 digit id from ??? (not the :id
> from the collection_select)
>
The id you are using there is the id
On Jul 30, 11:33 am, Hassan Schroeder
wrote:
> On Thu, Jul 30, 2009 at 8:21 AM, Aashish
>
> Kiran wrote:
> > can any one tell how to generate Offline documentation for ruby on
> > rails on windows
>
> I don't know about the "windows" part, but on my system it's already
> there. Running "gem se
On Jul 30, 4:21 pm, cnk wrote:
> module Experts
> module Photo
>
> def self.included(model)
> # model.send(:include,
> ClassMethods)
> model.send(:include, Callbacks)
> model.send(:include, Relationships)
> model.send(:include, Validations)
> end
>
> module
On Jul 30, 8:18 pm, "timasc...@googlemail.com"
wrote:
> Hello,
>
> I have a controller which gets some data from a user (through a form)
> and the it compute the user data and get an result. Depends on the
> result I want to make a request (for example: a simple popup) and the
> user type into
On Jul 31, 4:16 am, Anthony Burns wrote:
> Hello all,
>
> Is there a way to restart a Rails app from a controller? I'm trying to
> make it so that, in the backend, administrators can add plugins/themes/
> etc. to the running application without the need to actually go in to
> the server and res
On Jul 30, 3:01 pm, Hassan Schroeder
wrote:
> On Thu, Jul 30, 2009 at 11:28 AM, Marnen
>
> Laibow-Koser wrote:
> >> there. Running "gem server" and going tohttp://localhost:8808in a
> >> browser shows me the rdoc for all the installed gems, including Rails.
>
> > Really? On my system, Rails is
On Jul 31, 3:13 pm, Chris wrote:
>
> I found this on the Pragmatic errata site for the book:
>
> I'm really not sure what a non-deterministic bug is? Again, I can't
> believe everyone out there is restarting their web servers after they
> create each controller and view, are they?
Non determin
1 - 100 of 5972 matches
Mail list logo