This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name example.com; | |
access_log /home/username/logs/example.com.access.log main; | |
error_log /home/username/logs/example.com.error.log warn; | |
rewrite_log off; | |
root /home/username/www/example.com/; | |
location / { | |
index index.php; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
after_create :create_initial_project | |
field :name | |
field :role, :default => 'user' | |
index :role | |
index :email, :unique => true | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Project | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
.... | |
embeds_many :expenses | |
.... | |
end | |
class Expense |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lt: | |
devise: | |
sessions: | |
link: 'Prisijungti' | |
signed_in: 'Prisijungėte sėkmingai.' | |
signed_out: 'Atsijungėte sėkmingai.' | |
unauthenticated: 'Prieš tęsiant reikia prisijungti arba užsiregistruoti.' | |
unconfirmed: 'Prieš tęsiant reikia patvirtinti savo vartotoją.' | |
locked: 'Jūsų prisijungimas blokuojamas.' | |
invalid: 'Neteisingas el. paštas arba slaptažodis.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getting url from flashVars if passed | |
var path_from_url = getParams(this.root); | |
if (path_from_url.xml) | |
{ | |
xmlFileLoc = path_from_url.xml; | |
} | |
else | |
{ | |
xmlFileLoc="playlistpro.xml"; // local playback | |
} |
NewerOlder