Re: serving static files

2015-03-27 Thread Sebastjan Hribar
this helps, BEn On 3/23/15 6:40 AM, Sebastjan Hribar wrote: Hi, I have a problem with serving static files in my app. I use the code as shown here ( https://github.com/judofyr/camping/wiki/Serving-Static-Files). I had to remove the @ sign for FILE to make it work. For now I'm only

serving static files

2015-03-23 Thread Sebastjan Hribar
Hi, I have a problem with serving static files in my app. I use the code as shown here ( https://github.com/judofyr/camping/wiki/Serving-Static-Files). I had to remove the @ sign for FILE to make it work. For now I'm only serving one background image: -- #index_main {

authentication system in camping error

2015-03-14 Thread Sebastjan Hribar
://stackoverflow.com/questions/29054151/authentication-fails-in-camping-web-app-after-attribute-update. Direct link to my gist is here: https://gist.github.com/sebastjan-hribar/38b5b640ffd29d96cc70. The problem is that user authentication fails after user attribute has been updated in the database

Re: problems with console - uninitialized constant

2015-03-09 Thread Sebastjan Hribar
Hi Paul, you're right. I've mixed the two:( It works now. regards Seba Dne 09. 03. 2015 ob 21:29 je Paul van Tilburg zapisal(a): On Mon, Mar 09, 2015 at 07:24:38PM +0100, Sebastjan Hribar wrote: I'm having problems with the console. When I try to create a new user, I get this error: 2.1.5

problems with console - uninitialized constant

2015-03-09 Thread Sebastjan Hribar
Hi, I'm having problems with the console. When I try to create a new user, I get this error: 2.1.5 :001 user = User.new(username: hribar, email: s...@test.com, password: qwert, password_confirmation: qwert) NameError: uninitialized constant User from (irb):1 from

migrations issues

2015-01-02 Thread Sebastjan Hribar
Hi, I'm still having problem with running migrations. I've tried the code below: class FormStatusField V 1.1 def self.up add_column(Reviewform.table_name, :status, :string) Reviewform.reset_column_information end def self.down remove_column(Reviewform.table_name, :status) end end

Re: camping with prawn

2014-12-01 Thread Sebastjan Hribar
the user visits this view, the pdf format would be rendered and then they could save that? regards, seba Dne 01. 12. 2014 ob 20:20 je Sebastjan Hribar zapisal(a): Hi guys, can someone help me with this challenge. I'd like to be able to save reviewforms from my app to PDF files. I'm struggling

small custom erp - can I do it in camping

2014-10-25 Thread Sebastjan Hribar
Hi, I need advice before I decide to start my next project. Since camping is intended for smaller apps I'm not sure whether I should try to use it for my small custom erp app. _Here's what I had in mind:_ create several apps for separate erp modules or submodules even and have them use the

ActiveRecord - issues with schema

2014-10-02 Thread Sebastjan Hribar
Hi, My apps recently stopped working. Right after I launch the server I get (errors from sample app) ActiveRecord::RecordNotFound at / Couldn't find Test::Models::SchemaInfo with 'id'=firstRuby

Re: app doesn't run on windows

2014-06-09 Thread Sebastjan Hribar
judo...@gmail.com: Did you find a solution? It's been a while since I've been testing Camping on Windows, so I'm not quite sure how to set up SQLite properly. // Magnus On Friday, May 16, 2014, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Note: the error is caused by not having

Re: first app - some questions

2014-06-09 Thread Sebastjan Hribar
seba 2014-06-07 18:42 GMT+02:00 Magnus Holm judo...@gmail.com: On Saturday, May 3, 2014, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi guys, just a little feedback from a beginner. I've finished my first camping app. Thank you for your help and guidance. The finished app is about

app doesn't run on windows

2014-05-15 Thread Sebastjan Hribar
Hi, I have problem running the app in windows. This is the app I've asked question about recently (the review app). It runs ok in my linux mint debian edition, but on windows it doesn't. First issue was with encoding. Even if I've set the meta charset it didn't work. Now I've also set the

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
' @testform.testing doesn't do what you want it to do? On Mon, May 12, 2014 at 1:51 AM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, can someone tell me if multi-line input field is possible to do with markaby? If I use input tag like so: --- input type: 'textarea', name

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
the field in the form had the same appearance as the 'text' field. Thank you again. regards, seba On 12. 05. 2014 15:45, Sebastjan Hribar wrote: My assumption was based on the behavior of my form in my app. I'll test the way magnus wrote it and I'll post back here later today so I won't make any

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
On Tuesday, 13 May 2014 at 1:57 am, Sebastjan Hribar wrote: Here was my mistake: I thought that in order for setting the model attribute data like so: common_attributes = {title: input.title, ..., general_remark: input.general_remark} I have to explicitly state the input tag in the form like so

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
in to a textarea or a button or any other kind of form element. Markaby really is just a way of writing html, using ruby syntax instead of xml/sgml, and not much more. --- Bluebie On Tuesday, 13 May 2014 at 3:34 am, Sebastjan Hribar wrote: But textarea isn't unknown or unspecified type, right? On 12. 05

Re: first app - some questions

2014-05-03 Thread Sebastjan Hribar
the session adds states to the app. Can someone explain a bit more? regards, seba On 22. 04. 2014 21:27, Magnus Holm wrote: On Mon, Apr 21, 2014 at 7:32 PM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, I've updated the gist with my next version: https://gist.github.com

Re: views - html form duplication

2014-04-28 Thread Sebastjan Hribar
::Controllers::PostNEdit:0x007f1f95485128. Anyway, I went back and studied the partials and I've came up with this simple test app that works: https://gist.github.com/sebastjan-hribar/11371787 Another note, in the blog example in the line 96 the update_attributes method takes a hash, but I got

views - html form duplication

2014-04-24 Thread Sebastjan Hribar
Hi, I have a question about duplicating a html form in my views. To create a new review form in the app I've composed a html form which is a table and I've ended up with 200+ lines of code due to table row and data blocks. This is the input review form for a user to fill out and submit. My

Re: first app - some questions

2014-04-23 Thread Sebastjan Hribar
Thank you very much for this valuable information. And I've stumble upon another problem: migrations. I want to add additional columns and my table in the database which is already set up (this is still development). I did as it's described in the camping book and put another migration with

Re: first app - some questions

2014-04-21 Thread Sebastjan Hribar
Hi, I've updated the gist with my next version: https://gist.github.com/sebastjan-hribar/11081389 It works as I wanted but for now I left out the styling. My question is, is this the correct way of setting up routes? Can someone have a look and point out mistakes I've made. I mean the app

camping tutorial pre-2

2014-04-16 Thread Sebastjan Hribar
Hi Guys, I found this pre-2 tutorial on the ruby-camping-links.1.ai site: http://polzr.blogspot.com/2007/04/everythinginject-sum-post-sum-post-ii.html?view=timeslide I've gone through the code and typed it out to learn, but when I run the app I get the message / not found I've also copied the

Re: camping tutorial pre-2

2014-04-16 Thread Sebastjan Hribar
Hi, here is the gist: https://gist.github.com/anonymous/10878521 As a side note: I don't get replies to my mail box eventhoug I've subscribed to the mailing list. regards, seba 2014-04-16 13:14 GMT+02:00 Sebastjan Hribar sebastjan.hri...@gmail.com: Hi Guys, I found this pre-2 tutorial

first project - relevance

2014-03-31 Thread Sebastjan Hribar
Hi, Hopefully this mail wont duplicate as I've sent out one before I got the confirmation for subscription:) Here the original message: I'm new to camping, but not to ruby and I know about rails, but I've never used it apart from the learning blog app. I'm inspired by why's work as I use

first project - relevance

2014-03-31 Thread Sebastjan Hribar
Hi, I'm new to camping, but not to ruby and I know about rails, but I've never used it apart from the learning blog app. I'm inspired by why's work as I use Shoes a lot and I was blown when I first saw camping. I really want to start using it and I'd like to ask you guys if my first