On Fri, 18 Oct 2019 at 09:26, fugee ohu wrote:
> On one of my sites (in production) if I navigate to
> https:///set_locale/ko
> the browser doesn't load the page but if I'm on the site and I click the
> link for that url it works fine I was notified about the error by GSC
>
You haven't told us
On Fri, 18 Oct 2019 at 19:33, fugee ohu wrote:
>
>
> On Friday, October 18, 2019 at 5:57:55 AM UTC-4, Colin Law wrote:
>>
>> On Fri, 18 Oct 2019 at 09:26, fugee ohu wrote:
>>
>>> On one of my sites (in production) if I navigate to
>>> https:///s
On Sat, 4 Jan 2020 at 22:15, fugee ohu wrote:
>
> If I didn't specify a ruby version in my Gemfile
Look in the file that specifies which version of each gem to use.
Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsu
2009/7/6 Robert Walker :
>
> BrendanC wrote:
>> What GEMS/packages do I need to install for this? Any gotchas I need
>> to think about (apart from duplicate place name resolution).
>>
> A quick search on Github revealed this:
> http://github.com/bhedana/google_maps/tree/master
>
>> Any sample cod
2009/7/7 Rajendra Bayana :
>
> hi, i am new to ror,
>
> how can we rate ror when we campare with php and .net,
>
> what are the aspects that we need to consider when comparing ror with
> php and .net,
>
> can anyone mention those aspects and compare them with ror
Have your tried looking here?
2009/7/7 Rajendra Bayana :
>
> i am willing to develop a content management system using ROR. somebady
> told me that, for developing cms, ror is best way.
>
> In content management system, what are the different typr of users we
> have, and how can we give the privileges to those users.
>
> for d
2009/7/7 Rajendra Bayana :
>
> Colin Law wrote:
>> 2009/7/7 Rajendra Bayana :
>>> type of users and user authentication and privileges.
>> Rather than developing one of your own why not get involved in one of
>> the many Rails CMS systems that are
2009/7/8 Pål Bergström :
>
> I use rails 2.3.2. The server use 2.1.1. What do I do? Make a new app on
> my side based on 2.1.1? If yes, how do I do that?
> --
>
The best plan would be to get the server updated if possible.
Colin
--~--~-~--~~~---~--~~
You received
2009/7/9 Santosh Turamari :
>
> Hi,
>
> I have to remove the speial symbols from list of names. But I want to
> remain the dot(.) in the name itself.
> I use ommunity_org_review.name.downcase.strip.squeeze("
> ").gsub(/['^''&''!']/,
> '-').squeeze("-").chomp("-")
> or
> org_review.company.downcas
2009/7/9 Rajendra Bayana :
>
> hi, i installed ruby 1.8.6, installed gems 1.3.4.
>
> when i am going install rails by using the following command,
>
> gem install rails -v 2.0.2
>
> it installs 2.3.2, i can't understand why this installs 2.3.2,
> eventhough i mentioned the 2.0.2 version clearly.
>
2009/7/10 Jeffrey L. Taylor :
>
> My Web application has several contexts where a collection of ActiveRecords is
> rendered. If the URL contained the partial and/or layout, the several
> controller methods could be collapsed into one. What hazards, etc. lie that
> way?
I, for one, do not unders
2009/7/10 Zhao Yi :
>
> I got a string from "text_area_tag". Because the browser working on
> windows while my rails server working on linux, there is ^M at the end
> of each line. What I want to do is to remove this character and separate
> the string to an array. How can I do this?
>
Can I just
2009/7/11 Älphä Blüë :
>
> <% if schedule.date_scheduled.strftime('%I:%M %p') == '12:00 AM' %>
> TBA
> <% else %>
> <%=h schedule.date_scheduled.strftime('%I:%M
> %p') %>
> <% end %>
>
> Works fine - datetime formats that are say "2009-06-30 17:30:00" will
> show up as:
> => 05:30 PM
>
> But if
2009/7/11 Älphä Blüë :
>
> schedule.date_scheduled.strftime('%I:%M %p')
> => 05:30 PM
>
> schedule.date_scheduled.strftime('%l:%M %p')
> => nothing...
>
I thought I must be going blind as in gmail in FF the two lines above
look identical, it was only when I copied and pasted into my editor in
ord
2009/7/11 Älphä Blüë :
>
> I had been looking at:
>
> http://www.nullislove.com/2007/05/16/time-for-strftime/
Thanks for that, a very useful link.
>
> If you scroll down towards the bottom, there's a very large table that
> contains the formats. I was trying to follow the one for 12-hour
> with
2009/7/11 Älphä Blüë :
>
> NM..
>
> This actually does work:
>
> schedule.date_scheduled.strftime('%I:%M %p').gsub(/0?(\d):/,'\1:')
>
> I had to place it in another place because I forgot I was looking for a
> conditional. The %l does not work and it may just be ruby version
> related. I'm sure
2009/7/11 Jessica Smith :
> Hi,
> I am searching for plugins/gems which help me chart data.
>
> I'd like to start with something simple like a 2-D chart which shows a
> straight lines connecting points.
>
> The points would come from a series of x,y values.
>
> After that I'd like to build some ba
2009/7/11 Rajendra Bayana :
>
> hi, i want to develop an content management system using ror.
>
> what are the benifits i got using ror for this??
>
> and can u just tell me, what are the fecilities we have to create access
> controls in ror??
>
> how can it helps me in developing cms and access c
2009/7/11 Rajendra Bayana :
>
> hi,what are the benifits i got from ror when compared with other
> technologies in market??
>
> can anyone tell me, because i am in confusion choosing ror.
>
> pls tell me about the benifits i got from the ror.
Rajendra
This appears to be a re-post of
2009/7/12 Rails List :
>
> Recently I read that the following find
>
> Type 1
> --
> Post.find(:first, :conditions => ['status = ? and active = ?', 1, 1])
>
> can be written as
>
> Type 2
> --
> Post.find(:first, :conditions => { :status => 1, :active => 1 })
>
>
> But how do I include LIK
2009/7/13 Hemant Bhargava :
>
> How can i call a function/method defined in a controller into another
> view .. ?
Possibly put the method in the model instead.
Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
2009/7/13 Josh :
>
> Thanks for all the points and it is useful to think about the rails
> time not having time_of_day. I still am not sure my problem was clear.
> It seems to me that there should at least be a :emulate_datetime =>
> false sort of option like with booleans, ex.
>
> ActiveRecord::C
2009/7/13 Renzo :
>
> Hi guys.. I want to learn Ruby on Rails.. Actually I already have a
> Computer Based Training CD in Ruby on Rails by Lynda.com.. But I'm
> having a hard time in deploying the requirement 'coz in the training
> video the speaker is working on Mac OS.. But I'm using Windows.. H
2009/7/14 Marnen Laibow-Koser :
>
> Hassan Schroeder wrote:
>> On Mon, Jul 13, 2009 at 9:00 PM, Marnen
>> Laibow-Koser wrote:
>>
>>> I do understand that it might be useful to do
>>>
>>> @hassan.set_alarm_clock(AbstractTime.new(:hour => 7, :minute => 0))
>>
>> It might, but it isn't to me, and it
2009/7/15 s.ross :
>
> Hello--
>
> On Jul 14, 2009, at 9:50 PM, crazy canuck wrote:
>
>>
>> Hello everyone,
>>
>>
>> My name is Brandon. I have just finished setting up a ruby on
>> Rails server with PostgreSQL. No i am on windows server 2003 R2
>> service pack 2.
>>
>> I can create an app, and
2009/7/15 Byron :
>
> Hello, every time I create a Ruby controller and a view I get an error
> message when trying to open it in a web browser:
>
>
> We're sorry, but something went wrong.
>
> We've been notified about this issue and we'll take a look at it
> shortly.
>
That text comes from the d
2009/7/15 Marnen Laibow-Koser :
>
> Eriddick wrote:
>> Hi All-
>> My client is looking to add on one more senior RoR developer. They are
>> a high end fashion retailer in midtown and the position can pay up to
>> $100K.
>
> I'd be interested, but I have no way of knowing what city or country
> thi
2009/7/16 Valentino Lun :
>
> Dear all
>
> Is there any existing function in rails to calculate time? I have google
> it but no information found..
>
> For example
> a = "2009-07-16 12:34".to_time
> b = "2009-07-16 12:04".to_time
> some_method(a,b) return "30 mins ago"
>
> c = "2009-07-16 12:34".t
2009/7/16 Zhao Yi :
>
> Thanks. I think split is what I want.
> Another thing is that how I can remove the ^M from a string. I found
> that there is a method "replace" in string class. But it will replace
> the whole string, right?
> --
Have a look at the gsub method of String
Colin
--~--~-
2009/7/16 Kieran Mcgrady :
>
> First off I apologize for my language but I'm sure you can understand
> how frustrated I was.
>
> @Rick
> I tried data recovery tools but they couldn't find anything; all my
> files were completely gone. I had to reinstall leopard but thanks for
> the advice anyway.
2009/7/16 Valli :
>
> thnx a lot for the idea, i really apreciate it!!
> however it still doesn't work correctly so anyone has an other
> suggestion?
>
What do you mean 'it doesn't work'? Did it generate an error? What
it should do is find all the Files with mandant_id of
@invoice.mandant_id.
2009/7/16 Valli :
>
> so i want to selectioin boxes,
>
> -->one for choosing the mandant_id
> --> and then later having tht information in my second selection box i
> only want to see the files_id which correspond to tht mandant.
> --> and i will choose one which i will see later in the databa
2009/7/16 Marnen Laibow-Koser :
>
> Aaron Day wrote:
>> I've searched the whole forums watched all the videos read the books
>> and apparently there is about 1,000 ways to generate a rss feed. Which
>> none of them worked for me.
> [...]
>
You tried all 1000 ways?
I would suggest you pick one yo
2009/7/16 Carl Franz :
>
> First, I'm new to 'Ruby on Rails', but have 33 years experience in
> programming (mainframe, unix, windows, you name it, I've programed on
> it). Also, before I put this together I did read all of the threads out
> there which mention the 'rake' error.
>
> I have to say
2009/7/16 Carl Franz :
>
> Colin Law wrote:
>> Have you fiddled with the setting of
>> config.active_record.timestamped_migrations in environment.rb? This
>> specifies whether to use timestamped or incrementing integer indexes
>> for the migrations.
>>
>&g
2009/7/16 Carl Franz :
>
> Colin Law wrote:
>>
>> Is this a new application made with Rails 2.3.2 or did you start with
>> an earlier version of Rails?
>>
>
>
> I started this application on 7/14. Havn't done an upgrade since then.
> --
I have run
2009/7/18 duh :
>
> I'm having some access problems, on again, off again, with access my
> web pages.
>
> I'm using InstantRails, have generated several web projects, and for
> no reason, I start getting:
>
> Routing Error
> No route matches "/employees" with {:method=>:get}
>
> It's doing it for
2009/7/20 Brian Penrose :
>
> Marnen Laibow-Koser wrote:
>> Brian Penrose wrote:
>>> I have a string of state codes (ie 'MD,PA,VA,WV') i'm passing from a
>>> select list (:allow_multiple => true), in which I'm trying to replace
>>> the commas with "','". I have the following gsub, which works fin
2009/7/20 Robin Fisher :
>
> Hi all,
>
> I have some associations setup such that:
>
> class Job
> has_many :applications
> end
>
> class Candidate
> has_many :applications
> end
>
> class Application
> belongs_to :job
> belongs_to :candidate
> end
>
> When viewing a particular job, I have the
2009/7/21 bill walton :
>
> On Mon, 2009-07-20 at 05:52 -0700, eric wrote:
>> Hello everyone this is my first post. I come from a .NET background
>> but I have seen first hand the elegance of ruby and now i'm hooked.
>> I'm learning rails on 2.3.x and have worked through setting up a db
>> connect
2009/7/20 Thriving K. :
>
> In controller ,there is something like self. to call the controller
> itsself
>
> if i want to call model that belong to that controller in controller,
> How could i do.
>
I am not sure what you are asking here, could you explain in a little
more detail what you are tr
2009/7/21 Mitin Rai :
>
> Hi everyone. I am new to ROR can someone guide me through the process
> of learning ROR
I would suggest starting with RoR guides at
http://guides.rubyonrails.org and also
http://www.google.co.uk/search?q=learning+ruby+on+rails
Colin
--~--~-~--~~
2009/7/21 Hassan Schroeder :
>
> On Tue, Jul 21, 2009 at 5:39 AM, byrnejb wrote:
>
>> If you are building Rails apps on MS then I really recommend that you
>> install the cygwin environment on your host and do your development
>> there.
>
> Or alternatively install a virtualization product (e.g.,
2009/7/24 Hemant Bhargava :
>
> The above method:-
>
> :order => 'day, time_start, time_end' is returning me records only in
> day sorted.. This line is not sorting in context of time_start and
> time_end ..
>
> :'(
Have a look in the rails log (in your application/log) and see what
sql query is
2009/7/25 Glex :
>
> A Song :has and belongs to many Playlists.
> I want to store additional information about a song in a given
> playlist, i.e. the number of request of this song in a playlist.
>
> Here is an example
>
> Playlist a:
> |Song A|5 requests|
> |Song B|3 requests|
>
> Playlist b:
> |
2009/7/25 Glex :
>
> On Jul 25, 9:21 pm, Marnen Laibow-Koser s.net> wrote:
>> Gleb M. wrote:
>> > A Song :has and belongs to many Playlists.
>> > I want to store additional information about a song in a given
>> > playlist
>>
>> Then you'll need has_many :through. HABTM doesn't deal with extra
>
2009/7/27 Beta Ziliani :
>
> Hi everybody:
>
> I'm working in an upgraded app (from version 1.x of Rails to 2.3.2),
> and I can't install any plugin from the git repositories.
>
> For instance, if I run
>
> ruby script/plugin install git://github.com/dchelimsky/rspec.git -r
> 'refs/tags/1.2.7'
>
2009/7/27 Beta Ziliani :
>
> Somehow, your question solves the puzzle: None of my gems binaries
> (rails, spec, git, etc...) are in the path, that's the problem. It's
> weird. I will try to fix that up and see.
>
I actually meant the git application itself rather than the gems.
If you are on Ubu
2009/7/27 Shuaib Zahda :
>
> Hi there
>
> I am trying to stream a radio station from their server. It works fine
> on my ubuntu box.
> when I run it on IE in Windows, media player does not run the link.
> while other players (if installed) like real player and run time run
> the streaming fine
>
>
2009/7/28 Mark Dixon :
>
> Hi
>
> Is it feasible or horribly wrong to include a boolean column to a join
> table in order to 'junction' a join?
>
> Imagine you want to map a journey that will comprise multiple flights
> and train journeys.
>
> # train.rb
> # flight.rb
> # stages.rb
> # itinerary.r
2009/7/28 Christopher Edwards :
>
> Hi,
>
> The form definition below seems to work fine on the "GET" request, but
> when I post, control is not passed to the action controller's method
> modify. The return render is a blank page. There is nothing in the
> development.log file which indicates what
2009/7/28 Rob Biedenharn :
>
> On Jul 28, 2009, at 11:58 AM, Craig White wrote:
>
>>
>> I have a problem with a table that has a field named 'type'
>>
>> When I try to use active record in a console, I get this error...
>>
>> ActiveRecord::SubclassNotFound: The single-table inheritance mechanism
>
2009/7/28 Rob Biedenharn :
>
>
> On Jul 28, 2009, at 12:43 PM, Colin Law wrote:
>
>> Is there another way using some sort of alias on the column name as
>> the OP suggested? I have a legacy db with a column called action and
>> suspect that this may cause me some
2009/7/28 cocozz :
>
> Of course !
>
> Look at the end:
>
> "
> class Shopcategory0 < ActiveRecord::Base
> set_table_name "shopcategories_0"
>
> has_many :shopcategory1s, :foreign_key => :parentcategory_id
> end
>
> class Shopcategory1 < ActiveRecord::Base
> set_table_name "shopcategories_1"
2009/7/28 Rob Biedenharn :
>
> On Jul 28, 2009, at 11:58 AM, Craig White wrote:
>
>>
>> I have a problem with a table that has a field named 'type'
>>
>> When I try to use active record in a console, I get this error...
>>
>> ActiveRecord::SubclassNotFound: The single-table inheritance mechanism
>
2009/7/29 Craig White :
>
> Even my pickaxe book suggests this should work but it doesn't...
>
> for tax in @taxes
> next if ! (tax.taxauthid === [ 24, 25, 26, 27, 36, 37, 38, 39])
> print tax.taxamount + " - " + tax.taxauthid + "\n"
> end
>
> and my thinking is that if the tax.taxauthid is not
2009/7/29 Joseph :
>
> we are a publicly traded company that is looking for the next newest,
> greatest, best thing that is web-based. i know, everybody is looking
> for this. but we are in a unique position financially to do something
> about it. i am facinated with infant ideas that go viral wit
2009/7/29 Chris Habgood :
> Well sort of. I really need to validate another model based on the original
> form(model) conditions.
Do you mean you are trying to validate a model that has already been
written to the database, when a form for a different model is
submitted? If not I think a little
2009/7/28 rilindo foster :
>
> Hi Guys,
>
> Is it normal for Rails to create and delete the test database during
> rake tests? It seems to be case when I started to run it.
>
> Is there a way for the Rails not to create and delete databases during
> testing? I am little uncomfortable granting that
2009/7/29 Rajendra Bayana :
>
> hi i write the follwing code in sessions/new.html.erb file, when i go to
> run the application it gives the error
>
> Log In
>
> <% form_tag session_path do -%>
> <%= label_tag 'login' %>
> <%= text_field_tag 'login', @login %>
>
> <%= label_tag 'password' %>
> <%=
2009/7/29 Nik :
>
> Hey guys, thanks for your help!
>
> I found out about $`, $& and $', as well as $1 - $9. But here is still
> the problem. They do *find* the "abc" or "xxx" in front of "y"
>
> But I *cannot* act on them, I can only read them.
> I am saying, I can't do something like
>
> $` = "
bcydef'
str =~ /y/
str = "<#{$`}>y<#{$'}>"
or something similar.
Colin
>
> ?
>
> Best,
>
> On Wed, Jul 29, 2009 at 6:18 AM, Colin Law wrote:
>>
>> 2009/7/29 Nik :
>> >
>> > Hey guys, thanks for your help!
>> >
>&g
itten to the database'? If so then
that does not make sense. Validation is about checking that data is
correct before allowing it to be written to the db. If it is already
in the db it is too late to validate it.
Colin
>
> On Wed, Jul 29, 2009 at 4:48 AM, Colin Law wrote:
>>
may be "submitted" but not fully
> processed until the issues at a site get resolved.
No, sorry, I am completely flummoxed now, I have no idea what you are
trying to do. You are not explaining the problem in terms that I
understand, which may well be my fault.
Colin
>
> On Wed, Jul
2009/7/29 Chris Habgood :
> I have the main form "Site", has many :equipments.
> In the Site form I add equipment to the form dynamically to associate it to
> the site.
> I do not necessarily need to validate the equipment fields on the form
> submission unless a checkbox is checked on the "Site"
2009/7/29 Protos Jack :
>
> I thought the relation belongs_to automatically creates this column.
>
A relationship tells Rails to _expect_ the relevant id column, not to
create it. The only way that the db structure will change is if you
provide a migration (unless you change it manually of cours
2009/7/29 Craig White :
>
> I am getting a blank page, no errors, just a blank page.
>
> I have 2 files...
> reports/city_taxes_print.erb
> reports/_city_taxes_print.erb
Would not those normally be .html.erb?
>
> and my method is city_taxes_print and after getting variables from the
> controller
2009/7/29 Protos Jack :
>
> I see.. I did the migration then, thank you (thanks to rails for the
> migrations these problems with db are quickly fixed ^^).
>
> But I have the problem with the form for comments:
>
> Error:
>
> You have a nil object when you didn't expect it!
> You might have expect
2009/7/30 Fabian :
> As I posted earlier, I want to count lines in a text area.
> I use the following function
> lines = texto.split(/\n/).size if texto !=nil
>
> But fails when one line of text "wraps" automatically to the next line so no
> "\n" mark is returned into the text.
>
> So i found the
2009/7/30 Ziggy Leitner :
>
> My project is a small online course.
> A course has four terms and each term has ten lessons.
> When you start the course you get access to the course intro and the
> first term intro and the first lesson.
> Every week you get an email saying that it's time for your w
2009/7/31 seenu :
>
> Hi everyone this is the error that's been killing me, please tell
> where i am missing.
> I have upgraded my rails version from 1.2.3 to 2.3.2 and have
> installed active_scaffold plugin, since then this error started which
> was not there in older version.
>
> This is the lo
using the debugger?
By the way I believe that top posting is rather frowned on in this list.
Colin
>
> On Jul 31, 6:18 pm, Colin Law wrote:
>> 2009/7/31 seenu :
>>
>>
>>
>>
>>
>> > Hi everyone this is the error that's been killing me, plea
2009/7/31 Craig White :
>
> On Fri, 2009-07-31 at 07:46 -0700, Gabriel Bianconi wrote:
>> Hello. I created a form and it always throw the 'Title can't be blank'
>> error, even if I filled it.
>>
>> What is wrong?
>>
>> Thanks,
>>
>> Gabriel.
>>
>>
>>
>> # new.html.erb
9-07-31
> 12:12:31) [POST]
> Parameters: {"commit"=>"Create", "authenticity_token"=>"cS/
> xZND8RchwVPTwbGcE7HJe5ZndhyutqCVycX20vBQ=", "sfile"=>{"title"=>"",
> "description"=>""}}
>
2009/7/31 Gabriel Bianconi :
>
> Thanks for the instructions I'll try to buy that book...
Make sure you get the third edition. Also the online ruby on rails
guides are very good, as are the railscasts. Google will find them.
Colin
>
> On 31 jul, 14:08, Ar Chron wrote:
>> Gabriel Bianconi w
2009/7/31 fahrio :
>
> Hello,
>
> I am building a site with works and their credits. What I am trying o
> achieve is to find each work's similar works based on the mutual
> titles in their credits.
>
> I am adding each similar work into an array in a for loop and when I
> try to access the attribu
2009/7/31 Italo Matos :
> i have:
>
> class Library << ActiveRecord::Base
> has_many :books
> end
>
> class Book << ActiveRecord::Base
> belongs_to :library
> end
>
> in my controller i have:
>
> render :xml=> Library.find(:all).to_xml(:include=>books)
> but, i would like put a condition
By the way it is generally frowned upon to top post in this list.
Colin
>
>
>
>
>
> On 31 jul, 16:44, Colin Law wrote:
>> 2009/7/31 Italo Matos :
>>
>>
>>
>> > i have:
>>
>> > class Library << ActiveRecord::Base
>> >
2009/7/31 Fabian :
> HTML generated is:
>
>
That looks ok, have you looked in the log (log/development.log) to see
what is actually submitted?
Colin
> Colin Law escribió:
>
> 2009/7/30 Fabian :
>
>
> As I posted earlier, I want to count lines in a text area.
>
", "text"=>"Some
text", "obj_ids"=>["47", "85"], "location_id"=>"23",
"is_present"=>"1"}}
You are still top posting by the way.
Colin
> Colin Law escribió:
>
> 2009/7/31 Fabian :
>
t?
Colin
>
>
>
>
> On 31 jul, 17:10, Colin Law wrote:
>> 2009/7/31 Italo Matos :
>>
>>
>>
>> > I can`t put the conditionbs in the Library.find, because this
>> > relashionship is uses in other part of code.
>> > How to call
one who has not been following the thread to pick it up and help.
Colin
>
>
>
> On 31 jul, 18:15, Colin Law wrote:
>> 2009/7/31 Italo Matos :
>>
>>
>>
>> > but, if me put the conditions in find method,
>> > it will filter much libraries ( if
2009/8/1 karthik k :
> def test_check_for_validity
> post=County.new(:name=>"myname",:description=>"mydesc")
> assert post.save
> end
>
> above is the method and when i run unit test it is saying as
>
> 1) Failure:
> test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
>
particularly Getting Started and
Testing Rails Applications. Also the rest of them in fact.
Colin
>
> --
> Karthik.k
> Mobile - +91-9894991640
>
>
> On Sat, Aug 1, 2009 at 1:29 PM, Colin Law wrote:
>>
>> 2009/8/1 karthik k :
>> > def test_check_for
2009/8/1 karthik k :
> hi
> i am updating the data in unit testing
>
> def test_for_update
> post=counties(:one)
> assert post.valid?, post.errors.full_messages
> assert post.update_attributes(:name=>"")
> end
>
>
> name should not be empty but as you said i displayed
>
> "assert pos
ed that you look at the rails guides Getting
Started and Testing. Have you done that and do you understand all
that is in them? (Or at least understand most of it)
Colin
>
> --
> Karthik.k
> Mobile - +91-9894991640
>
>
>
> On Sat, Aug 1, 2009 at 3:59 PM, Colin Law wrote:
>
2009/8/1 karthik k :
> Hi colin
>
> On small help
>
> below is the code or checking for uniquness
>
> def test_check_for_uniqueness_name
> post=County.new(:name=>"mynamed",:description=>"mydesc",:region_id=>"3")
> assert post.valid?, "post was not valid #{post.errors.inspect}"
>
> post1=Co
2009/8/1 Andrew Pace :
>
> I have a three table construct. A "Users" table. Users have a one-to-
> one relationship with a "Carts" table for saving the contents of a
> shopping cart to the DB. I have a "Products" table for holding
> product information. The Carts have a many-to-many relationsh
2009/8/3 Marnen Laibow-Koser :
>
> Sijo Kg wrote:
>> Hi
>>
>> Yes I want to draw maps, dealing with geocoded data,
>
> I've been using YM4R for that. I've only dealt with Google Maps, but I
> understand that Mapstraction is very helpful if you're dealing with
> multiple mapping services.
>
I wo
2009/8/3 Marnen Laibow-Koser :
>
> Colin Law wrote:
> [...]
>> I have a problem with YM4R however. The concept there is to construct
>> the map object in the controller and then display it in the view.
>
> It's been a while since I've touched that part o
revious questions. See below.
> Please help
>
>
> --
> Karthik.k
> Mobile - +91-9894991640
>
>
> On Sat, Aug 1, 2009 at 6:43 PM, Colin Law wrote:
>>
>> 2009/8/1 karthik k :
>> > Hi colin
>> >
>> > On small help
>> >
>> > b
2009/8/3 Alpha Blue :
>
> Test One:
>
> week_start_date =Time.now.beginning_of_week.to_date.strftime('%Y-%m-%d')
> week_end_date = Time.now.end_of_week.to_date.strftime('%Y-%m-%d')
> compiled_on = week_start_date..week_end_date
> tsos_offense = Team.find(10,1, :joins => [:tsos_offenses], :conditio
2009/8/4 tonymocha :
>
> I am trying to load an external image from other website in my rails
> app. With following syntax:
>
> <%= image_tag('http://www.google.com/intl/en_com/images/
> logo_plain.png' %>
You have a missing ) in the statement, though not necessarily the
cause of the problem.
Als
2009/8/4 Fernando Perez :
>
> Nailed! It was acts_as_tree the problem. He has been sentenced to an
> unlimited time ban from my app.
That seems surprising as there is so little in acts_as_tree. Unless
it is an interaction with something else that you have. Is there a
possibility you could be se
2009/8/4 Fabian :
>
> "Agile Web Development with Rails"
Make sure it is the third edition or it will be out of date already
Colin
> Sood escribió:
>> I am a PHP developer and I am interested in learning some RoR. I tend
>> to learn easier using a book, but there are so many out there it is
>>
2009/8/5 kill...@gmail.com :
>
> Just tried the same think and I was surprised as you. I do not think
> that it is normal behavior.
> It is really weird. And even sometimes it works as I wish and second
> time (after rake db:fixture:load) not.
As Marnen said this is normal behaviour. If an id v
2009/8/6 Sijo Kg :
>
> Hi
> Read this
>
> http://guides.rubyonrails.org/association_basics.html#has-and-belongs-to-many-association-reference
>
> Sijo
> --
And this
http://guides.rubyonrails.org/association_basics.html
and this if you have not seen it already
http://guides.rubyonrails.org/gett
2009/8/6 Gary Chris :
>
> Hi,
>
> I've come across a strange issue with one of my views.
>
> Simple login form,
>
> <% form_tag do -%>
>
> Login
> <%= text_field_tag 'login' %>
>
> Password
> <%= password_field_tag 'password' %>
>
> <%= submit_tag 'Log in' %>
> <
2009/8/7 bill walton :
>
> Hi Doug,
>
>
> On Thu, 2009-08-06 at 18:34 -0700, doug wrote:
>> I have a problem of gut-wrenching proportions that can easily be
>> illustrated by the following snippit of template code:
>
> For starters, and please don't be offended, but other than the
> ... line, none
2009/8/7 CoolAJ86 :
>
> Ideally what I would like to have happen:
> Contact.find (and .find_by_xyz, etc) will never return a contact
> unless contact.group is IN
> current_user.contact.group.supergroup.groups
>
>
> Scenario:
> User belongs to a Contact.
> Contact belongs to a Group.
> Group belong
1 - 100 of 7008 matches
Mail list logo